Documentation
¶
Index ¶
- func Validate(cfg Config) error
- type AuthConfig
- type Config
- type Database
- type Embedding
- type LoggingConfig
- type MatchScoringWeightsConfig
- type Neo4jConfig
- type OllamaConfig
- type OpenRouterConfig
- type ParserConfig
- type PostprocessConfig
- type ProfileLayerConfig
- type QdrantConfig
- type RetrievalConfig
- type RetrievalMultiHopConfig
- type RetrievalScoringConfig
- type RetrievalSearchConfig
- type ScoringWeightsConfig
- type ServerConfig
- type StructuredMemoryConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthConfig ¶
type Config ¶
type Config struct {
Server ServerConfig `yaml:"server"`
VectorBackend string `yaml:"vector_backend"`
EntityFactBackend string `yaml:"entity_fact_backend"`
DefaultTenantID string `yaml:"default_tenant_id"`
ImportanceScorer string `yaml:"importance_scorer"`
Postprocess PostprocessConfig `yaml:"postprocess"`
StructuredMemory StructuredMemoryConfig `yaml:"structured_memory"`
Retrieval RetrievalConfig `yaml:"retrieval"`
Parser ParserConfig `yaml:"parser"`
ProfileLayer ProfileLayerConfig `yaml:"profile_layer"`
Database Database `yaml:"database"`
Qdrant QdrantConfig `yaml:"qdrant"`
Neo4j Neo4jConfig `yaml:"neo4j"`
Embedding Embedding `yaml:"embedding"`
OpenRouter OpenRouterConfig `yaml:"openrouter"`
Ollama OllamaConfig `yaml:"ollama"`
Auth AuthConfig `yaml:"auth"`
Logging LoggingConfig `yaml:"logging"`
}
type Embedding ¶
type Embedding struct {
Provider string `yaml:"provider"`
FallbackProvider string `yaml:"fallback_provider"`
ModelPath string `yaml:"model_path"`
TokenizerPath string `yaml:"tokenizer_path"`
OllamaBaseURL string `yaml:"ollama_base_url"`
OllamaModel string `yaml:"ollama_model"`
OllamaTimeoutSeconds int `yaml:"ollama_timeout_seconds"`
}
type LoggingConfig ¶
type Neo4jConfig ¶
type OllamaConfig ¶
type OpenRouterConfig ¶
type ParserConfig ¶
type ParserConfig struct {
Enabled bool `yaml:"enabled"`
Provider string `yaml:"provider"`
OllamaBaseURL string `yaml:"ollama_base_url"`
OllamaModel string `yaml:"ollama_model"`
OpenRouterModel string `yaml:"openrouter_model"`
OllamaTimeoutMS int `yaml:"ollama_timeout_ms"`
StoreRawTurn bool `yaml:"store_raw_turn"`
MaxFacts int `yaml:"max_facts"`
DedupeThreshold float64 `yaml:"dedupe_threshold"`
UpdateThreshold float64 `yaml:"update_threshold"`
AnswerSpanRetentionEnabled bool `yaml:"answer_span_retention_enabled"`
}
type PostprocessConfig ¶
type PostprocessConfig struct {
Enabled bool `yaml:"enabled"`
PollIntervalMS int `yaml:"poll_interval_ms"`
BatchSize int `yaml:"batch_size"`
WorkerCount int `yaml:"worker_count"`
LeaseMS int `yaml:"lease_ms"`
MaxAttempts int `yaml:"max_attempts"`
RetryBaseMS int `yaml:"retry_base_ms"`
RetryMaxMS int `yaml:"retry_max_ms"`
}
type ProfileLayerConfig ¶
type ProfileLayerConfig struct {
SupportLinksEnabled bool `yaml:"support_links_enabled"`
}
type QdrantConfig ¶
type RetrievalConfig ¶
type RetrievalConfig struct {
Scoring RetrievalScoringConfig `yaml:"scoring"`
Search RetrievalSearchConfig `yaml:"search"`
MultiHop RetrievalMultiHopConfig `yaml:"multi_hop"`
AnswerTypeRoutingEnabled bool `yaml:"answer_type_routing_enabled"`
EarlyRankRerankEnabled bool `yaml:"early_rank_rerank_enabled"`
TemporalResolverEnabled bool `yaml:"temporal_resolver_enabled"`
OpenDomainAlternativeResolverEnabled bool `yaml:"open_domain_alternative_resolver_enabled"`
}
type RetrievalMultiHopConfig ¶
type RetrievalMultiHopConfig struct {
EntityFactBridgeEnabled bool `yaml:"entity_fact_bridge_enabled"`
LLMDecompositionEnabled bool `yaml:"llm_decomposition_enabled"`
DecompositionProvider string `yaml:"decomposition_provider"`
OpenRouterModel string `yaml:"openrouter_model"`
OllamaBaseURL string `yaml:"ollama_base_url"`
OllamaModel string `yaml:"ollama_model"`
OllamaTimeoutMS int `yaml:"ollama_timeout_ms"`
MaxDecompositionQueries int `yaml:"max_decomposition_queries"`
EnablePairwiseRerank bool `yaml:"enable_pairwise_rerank"`
TokenExpansionFallback bool `yaml:"token_expansion_fallback"`
GraphPathEnabled bool `yaml:"graph_path_enabled"`
GraphMaxHops int `yaml:"graph_max_hops"`
GraphSeedLimit int `yaml:"graph_seed_limit"`
GraphPathLimit int `yaml:"graph_path_limit"`
GraphMinScore float64 `yaml:"graph_min_score"`
GraphWeight float64 `yaml:"graph_weight"`
GraphTemporalValidity bool `yaml:"graph_temporal_validity"`
GraphSingletonInvalidation bool `yaml:"graph_singleton_invalidation"`
}
type RetrievalScoringConfig ¶
type RetrievalScoringConfig struct {
Algorithm string `yaml:"algorithm"`
WAL ScoringWeightsConfig `yaml:"wal"`
Match MatchScoringWeightsConfig `yaml:"match"`
}
type RetrievalSearchConfig ¶
type RetrievalSearchConfig struct {
AdaptiveQueryExpansionEnabled bool `yaml:"adaptive_query_expansion_enabled"`
AdaptiveQueryMaxExtraQueries int `yaml:"adaptive_query_max_extra_queries"`
AdaptiveQueryWeakLexicalThreshold float64 `yaml:"adaptive_query_weak_lexical_threshold"`
AdaptiveQueryPlanConfidenceThreshold float64 `yaml:"adaptive_query_plan_confidence_threshold"`
CandidateWindowMultiplier int `yaml:"candidate_window_multiplier"`
CandidateWindowMin int `yaml:"candidate_window_min"`
CandidateWindowMax int `yaml:"candidate_window_max"`
CandidateWindowTemporalBoost int `yaml:"candidate_window_temporal_boost"`
CandidateWindowMultiHopBoost int `yaml:"candidate_window_multi_hop_boost"`
CandidateWindowFilterBoost int `yaml:"candidate_window_filter_boost"`
EarlyRerankBaseWindow int `yaml:"early_rerank_base_window"`
EarlyRerankMaxWindow int `yaml:"early_rerank_max_window"`
}
type ScoringWeightsConfig ¶
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.