Skip to main content

ExtractionProvider

Trait ExtractionProvider 

Source
pub trait ExtractionProvider: Send + Sync {
    // Required method
    fn extract(&self, episodes: &[Episode]) -> Result<Vec<NewSemanticNode>>;
}
Expand description

Trait for automatic knowledge extraction from episodes.

Implement this with your preferred LLM (Haiku, GPT-4o-mini, local Ollama) to enable auto-consolidation. When set on Alaya, the MCP server will automatically extract facts instead of prompting the agent.

Required Methods§

Source

fn extract(&self, episodes: &[Episode]) -> Result<Vec<NewSemanticNode>>

Extract semantic knowledge from a batch of episodes.

Implementors§