Lab 2 — Local RAG

Lab 2 — Local RAG

Key jargon

Term Plain-language meaning
Corpus The collection of source documents available for retrieval.
Index A data structure that makes candidate retrieval efficient.
Retrieval query The representation of the user's information need sent to search.
Ground-truth case A question paired with known supporting evidence and expected answer properties.

Key concepts

Concept map

flowchart LR
    A["Prepare provenance-rich corpus"] --> B["Chunk embed and index"]
    B --> C["Retrieve and answer"]
    C --> D["Measure retrieval and grounding"]

Goal

Answer questions from five synthetic Markdown documents using a local embedding index and model, with source IDs and abstention.

Build stages

  1. Create documents with known facts, dates, conflicts, and access labels.
  2. Preserve originals and generate a versioned ingestion manifest.
  3. Compare two chunking strategies.
  4. Build lexical and vector retrieval baselines.
  5. Add context construction and generated answer.
  6. Validate citations against exact source spans.
  7. Test answerable, unanswerable, conflicting, and unauthorized cases.

Pass criteria

Continue

Use the preserved RAG-CAS notes as an implementation comparison, not as the evaluation definition.