Module retrieval

Module retrieval 

Source
Expand description

Preparing memory context before the model asks for it.

The pipeline runs entirely off the response path: a plan is derived from the transcript, queries are fused, and a budgeted snapshot is frozen into state. When the recall_context tool call arrives, serving it is a state read.

Re-exports§

pub use assembler::ContextAssembler;
pub use deterministic::DeterministicPlanner;
pub use deterministic::KnownEntities;
pub use deterministic::RetrievalSignal;
pub use embedding::embedding_text;
pub use embedding::frontmatter_prose;
pub use embedding::predicate_line;
pub use extractor::BoundedPlanExtractor;
pub use extractor::DeterministicPlanExtractor;
pub use extractor::RETRIEVAL_PLAN_INSTRUCTION;
pub use extractor::RetrievalExtractionContext;
pub use extractor::RetrievalPlanExtractor;
pub use extractor::context_for;
pub use extractor::retrieval_plan_schema;
pub use fusion::FusedCandidate;
pub use fusion::RRF_K;
pub use fusion::reciprocal_rank_fusion;
pub use plan::RetrievalEntity;
pub use plan::RetrievalIntent;
pub use plan::RetrievalPlan;
pub use plan::TemporalConstraint;
pub use plan::limits;
pub use retriever::IndexHandle;
pub use retriever::LocalMemoryRetriever;
pub use retriever::MemoryRetriever;
pub use retriever::RetrievalBudget;
pub use retriever::RetrievalRequest;
pub use retriever::SemanticFallback;
pub use semantic::Embedder;
pub use semantic::PrecomputedSemanticIndex;
pub use semantic::RERANK_DEPTH;
pub use semantic::StaticEmbedder;
pub use snapshot::PreparedMemorySnapshot;
pub use snapshot::RetrievedMemory;
pub use snapshot::SNAPSHOT_TTL_SECONDS;
pub use snapshot::estimate_tokens;
pub use snapshot::fuse_snapshots;
pub use vocabulary::DEFAULT_LIMIT as MEMORY_MAP_LIMIT;
pub use vocabulary::memory_map;
pub use vocabulary::memory_map_with_limit;

Modules§

assembler
Context assembly — turning a ranked candidate list into a bounded snapshot.
deterministic
Rule-based retrieval planning.
embedding
The text a record should be embedded as.
extractor
The out-of-band retrieval-plan extractor seam.
fusion
Reciprocal rank fusion across independent lexical queries.
plan
The retrieval plan — a transient, query-oriented reading of the transcript.
retriever
The retrieval pipeline: plan in, prepared snapshot out.
semantic
A precomputed, quantized semantic index.
snapshot
Prepared memory snapshots — the immutable unit the model consumes.
vocabulary
An inventory of what a user’s memory contains, for the model to read.