Project 06 · Cited Knowledge Assistant
Project· 7–9 hours· Lesson 55 of 129
The notebook opens in your lab, in a new tab. If your server is stopped, it starts first (a few seconds).
Project requirements
- Index ≥ 30 documents (mixed PDF + Markdown) with
source/pagemetadata, in Chroma persisted todata/vectorstores/(git-ignored). - Two variants, same corpus and questions: 2-step RAG (06.06) and agentic RAG (06.07).
- Answers are
ChunkCitedAnswer(answer, citations: list[ChunkCitation(source, page, quote, chunk_id)]). Every citation names the chunk it quotes (theid=shown in the context), and the quote must be a substring of that retrieved chunk, verified in code. - A held-out, stratified test set of 72 questions (
data/samples/rag/project06-test-set.jsonl): 54 answerable ones in 6 strata (product pages, policies, support FAQs, release notes, PDFs, guides) and 18 to decline: 8 unanswerable (on-topic, not in the docs) and 10 out of scope (off-topic requests and an instruction). Report recall@5, answer correctness and a per-stratum table for both variants. The lessons' 20-question golden set is the development set; the test set shares no question with it. - "Don't know" policy: a decline is the correct answer for all 18 out-of-corpus questions (graded as a correct refusal).
Before you start
Lessons 06.01–06.09
