Skip to main content

GroundingStrategy

Trait GroundingStrategy 

Source
pub trait GroundingStrategy:
    Send
    + Sync
    + 'static {
    // Required method
    fn ground(&self, documents: &[Document]) -> String;
}
Expand description

Strategy for grounding agent context with retrieved documents.

Required Methods§

Source

fn ground(&self, documents: &[Document]) -> String

Convert retrieved documents into context text for the agent.

Implementors§