Documentation
¶
Overview ¶
Package extract distils conversation prose into durable, classified facts without an LLM — a port of mempalace's heuristic extractor. It pulls the decisions, preferences, and problems worth keeping out of an episodic exchange, as durable memories that earn trust on recall. Marker-driven and deliberately conservative: a miss just means no extra memory, never a wrong one. Both the backfill importer and write-time extraction share this logic.
Index ¶
Constants ¶
const MaxPerExchange = 5
MaxPerExchange caps extractions from a single exchange so one rambling turn can't flood the store.
const MinConfidence = 0.3
MinConfidence gates an extraction: confidence is min(1, score/5) where score is the count of distinct markers that match plus a length bonus, so a lone marker on a short segment (0.2) is dropped while two distinct markers, or one in a longer segment, pass.
Variables ¶
This section is empty.
Functions ¶
This section is empty.