You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
π§ Make LLM enrichment the default extraction path (deprecate dumb kv extractor)Β #227
The rule-based fact extractor produces massive amounts of low-quality kv facts. Our DB had 537K kv facts out of 587K total (91.6%) β most were garbage: section headers, partial sentences, raw log entries. A 250:1 fact-to-memory ratio is broken.
Meanwhile, LLM enrichment (Grok 4.1 Fast) finds higher quality facts β decisions, relationships, state tracking, implicit connections β that rules can never catch.
Proposal
Make --enrich the default when importing. LLM enrichment should run by default on every import unless --no-enrich is passed.
Reduce rule-based extraction aggressiveness β the current regex rules extract too many false positives. Tighten the governor:
Reduce AutoCaptureGovernorConfig.MaxFacts from 15 β 8
Skip facts where subject is a section header or markdown formatting
Classification at import time β after enrichment, auto-classify any remaining kv facts using DeepSeek V3.2. This means facts are properly typed from birth, not bulk-reclassified later.
Add --no-enrich and --no-classify flags for offline/budget-conscious use.
Context
Nuked 589K facts on Feb 24, 2026 β rebuilding clean with LLM pipeline
Benchmarked 6 models: Grok 4.1 Fast best for enrichment, DeepSeek V3.2 best for classification
Cost: ~$2-3 per full corpus reimport (2,335 memories)
Old pipeline: 250 facts/memory average. Target: 5-10 quality facts/memory.
Acceptance Criteria
cortex import <file> --extract runs enrichment by default (uses DefaultEnrichModel)
Activity
fix(extract): tighten rule extractor β kill 88% kv garbage (#227)
feat: graceful LLM degradation + README v0.9.0 docs (#227)