pub struct ExtractionConfig {
pub provider: LlmProvider,
pub api_key: Option<String>,
pub api_url: String,
pub model: String,
pub region: Option<String>,
pub max_extractions_per_conversation: usize,
pub quality_threshold: f32,
pub deduplication_threshold: f32,
pub enable_contradiction_check: bool,
pub enable_deduplication: bool,
pub extraction_passes: usize,
}Expand description
Configuration for the extraction pipeline.
Fields§
§provider: LlmProviderWhich LLM provider to use.
api_key: Option<String>API key for the provider (not needed for Ollama).
api_url: StringAPI endpoint URL (defaults based on provider).
Ignored for the Bedrock provider, whose endpoint is derived from
region and model per-request.
model: StringModel name to use.
region: Option<String>AWS region for the Bedrock provider (e.g. “us-east-1”). Ignored by all
other providers. Defaults from MENTEDB_LLM_REGION/AWS_REGION.
max_extractions_per_conversation: usizeMaximum number of memories to extract from a single conversation.
quality_threshold: f32Minimum confidence score for a memory to be accepted (0.0 to 1.0).
deduplication_threshold: f32Embedding similarity above which a memory is considered a duplicate (0.0 to 1.0).
enable_contradiction_check: boolWhether to check new memories against existing ones for contradictions.
enable_deduplication: boolWhether to check new memories against existing ones for duplicates.
extraction_passes: usizeNumber of extraction passes (1 = single pass, 2 = first pass + verification).
Implementations§
Trait Implementations§
Source§impl Clone for ExtractionConfig
impl Clone for ExtractionConfig
Source§fn clone(&self) -> ExtractionConfig
fn clone(&self) -> ExtractionConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more