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
The Java experiments use synthetic documents to check ranking and citations. The blog case reproduces a false hit in published prose. Comparing generated answers with and without retrieval remains future work.
Try it: choose evidence and adjust ranking →
START HERE
Core reading path
Validate retrieved evidence
Inspect hits and false positives on the small corpus without claiming production quality.
Validate the answer's support
Check each claimed field, environment and revision against a quoted configuration.
Reproduce a false hit in the blog
Read the candidates for “cache guarantee success” and follow a quotation back to its context to explain what matched.
PROJECTS
Related projects
- PROJECT / 001
Hohoo’s AI Lab
A personal knowledge site for public learning, research signals and practice.
- 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.
Papers and references
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 ↗