Skip to main content

Retrieval, context and memory

This group is about putting the right material in front of the model: finding the relevant passages in your documents, assembling the context for the current task, and deciding what persists across sessions. Each of the three local tools serves one need: QMD searches your own notes, zvec-grep finds files in code and documents by meaning, and Basic Memory lets an AI assistant read and write notes itself.

Reading Order​

StepArticleYour job
1Retrieval Pipelines: Chunking, Recall, Reranking, and CitationsTurn documents into traceable evidence, and find what recall, ranking and context assembly each lose.
2Embeddings, Rerankers, and Classifiers: Similarity, Relevance, and DecisionsTell the three model roles apart by input, output and training objective, and pick the right one for each step.
3Context Engineering for AgentsAssemble a small, current working set for the task, with provenance and durable state kept outside the window.
4Agent Memory: Retention, Revision and ExpiryDecide what an AI assistant should remember, when to revise it and when it expires.
5Vector Indexes: Exact Search, HNSW, and IVFCompare exact search, HNSW and IVF, and measure recall against exact neighbours.
6QMD: Search Markdown Notes LocallySearch your own Markdown notes by keyword, meaning or both, then read the source behind each hit.
7zvec-grep: Search Code and Documents by MeaningFind files in code and documents by meaning, then check the current source.
8Basic Memory: Linked Markdown Notes for AI AssistantsLet an AI assistant read and write linked Markdown notes across conversations.
See alsoEvaluating Retrieval and Generation: From Evidence to Correct AnswersMeasure evidence hits, ranking, faithfulness and answer quality separately to find a RAG system’s bottleneck; this note belongs to the Evaluation and evidence group.
Explore connectionsOpen network