Retrieval and RAG Guides
Improve grounded answers with hybrid search, document ingestion, reranking, and consistent knowledge updates.
Start with the first guide for the core design, then use the others to examine specific implementation and operational decisions. Each includes primary references and illustrative examples.
- Hybrid Search for RAG Agents: BM25, Vectors, and Fusion
Build hybrid search for RAG agents with lexical and vector retrieval, rank fusion, consistent access filters, evidence selection, and realistic evaluation.
8 min read
- RAG Chunking and Document Ingestion: Preserve Meaning and Provenance
Build a RAG ingestion pipeline that preserves document structure, source locations, permissions, and version history while producing useful retrieval chunks.
8 min read
- RAG Reranking: Selecting Evidence Under a Context Budget
Design RAG reranking around candidate recall, evidence coverage, token budgets, diversity, latency, and clear rules for incomplete or conflicting sources.
7 min read
- Agentic RAG vs Classic RAG: When Iterative Retrieval Helps
Compare agentic RAG and classic RAG through evidence dependencies, bounded retrieval loops, stopping rules, and fair evaluation of answer quality.
8 min read
- RAG Freshness: Updates, Deletion, and Index Consistency
Keep RAG answers current with versioned ingestion, deletion watermarks, permission checks, and cache invalidation that survives delayed jobs and replay.
8 min read