Retrieval and RAG: Generative AI worked examples
Check whether the system finds the evidence required to answer.
Retrieval and RAG
Check whether the system finds the evidence required to answer.
Build a local RAG pipeline with checked source citations
Retrieve from original public teaching notes, generate with a pinned local model and publish only a source-matching quotation or an explicit abstention.
project · 5 min readRAG retrieval evaluation: calculate recall, precision and reciprocal rank
Build an offline evidence-retrieval test set, compare rankings with explicit relevance judgments and separate retrieval success from answer correctness.
tutorial · 4 min read