RAG · Retrieval-augmented generation
04 / Retrieve
From finding documents to answering with evidence. Connect retrieval, citations, evaluation and trust boundaries.
- Documents & versions
- Chunks & index
- Retrieval & reranking
- Evidence & answers
- Evaluation & abstention
Two offline practices are published: a BM25 retrieval baseline and citation checks for closed fields. They do not establish real-model answer quality or constitute a complete blog Q&A system.
Try it: choose evidence and adjust ranking →
START HERE
Series overview · suggested reading order
- Engineering cases
Java LLM VI: validate retrieval evidence before judging RAG answers
Implement BM25 and citation boundaries over ten owned synthetic documents and fourteen frozen queries, retaining misses and false hits.
- Engineering cases
Java LLM practice (7): a real citation can still support a wrong answer
22 frozen configuration cases separate citation existence, revision scope, field support and completeness in a Java answer gate.
PROJECTS
Related projects
- PROJECT / 002
Java LLM Practice
Reproducible Java conversation, retry and persistence boundaries, alongside attention, cache-cost and quantization-error experiments.
Related experiments
- LAB / 001
Retrieval quality comparison
Use fixed questions and documents; compare retrieval hits, citations and answer correctness with and without retrieval.
Paper reading guides
Learning path & planned topics
These are future topics, not completed experiments.
- Freeze the corpus, then compare chunking · PLANNED
Build traceable documents and relevance labels, separating development and held-out questions.
- Choosing BM25, dense or hybrid retrieval · PLANNED
Compare lexical matching, dense retrieval and fused ranking on identical questions.
- Reranking and assembling the context · PLANNED
Select evidence with answer coverage and limited duplication under a fixed context budget.
- From retrieved evidence to answer quality and abstention · PLANNED
Measure retrieval hits, claim support and abstention on missing evidence separately.
- Updates, permissions and retrieval injection · PLANNED
Prevent withdrawn, stale or unauthorized documents from becoming current answer evidence.
- Integration: traceable blog Q&A · PLANNED
Connect retrieval, evidence, answers and failure handling in a reproducible minimal application.
Try it · Retrieval and ranking
Expand to explore in your browser. Link to this exercise ↗