RAG · Retrieval-augmented generation

04 / Retrieve

From finding documents to answering with evidence. Connect retrieval, citations, evaluation and trust boundaries.

  1. Documents & versions
  2. Chunks & index
  3. Retrieval & reranking
  4. Evidence & answers
  5. 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

  1. Validate retrieved evidence

    Inspect hits and false positives on the small corpus without claiming production quality.

  2. Validate the answer's support

    Check each claimed field, environment and revision against a quoted configuration.

  3. 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.

All articles in this track →

Prerequisites, focused studies and progress →

PROJECTS

Related projects

  1. PROJECT / 001

    Hohoo’s AI Lab

    A personal knowledge site for public learning, research signals and practice.

    Live
  2. PROJECT / 002

    Java LLM Practice

    Reproducible Java conversation, retry and persistence boundaries, alongside attention, cache-cost and quantization-error experiments.

    Building
Related experiments
  1. LAB / 001

    Retrieval quality comparison

    Use fixed questions and documents; compare retrieval hits, citations and answer correctness with and without retrieval.

    Running
Papers and references

Paper reading guides

Learning path & planned topics

These are future topics, not completed experiments.

  1. Freeze the corpus, then compare chunking · PLANNED

    Build traceable documents and relevance labels, separating development and held-out questions.

  2. Choosing BM25, dense or hybrid retrieval · PLANNED

    Compare lexical matching, dense retrieval and fused ranking on identical questions.

  3. Reranking and assembling the context · PLANNED

    Select evidence with answer coverage and limited duplication under a fixed context budget.

  4. From retrieved evidence to answer quality and abstention · PLANNED

    Measure retrieval hits, claim support and abstention on missing evidence separately.

  5. Updates, permissions and retrieval injection · PLANNED

    Prevent withdrawn, stale or unauthorized documents from becoming current answer evidence.

  6. Integration: traceable blog Q&A · PLANNED

    Connect retrieval, evidence, answers and failure handling in a reproducible minimal application.

Continue along a learning path →

Try it · Retrieval and ranking

Expand to explore in your browser. Link to this exercise ↗