Retrieval · L2 · 15 min
Cite or refuse
Learn in five minutes
- Every factual sentence needs a passage or a refusal.
- A citation the index did not return is not a citation.
- OWASP's LLM project lists risks including overreliance and sensitive data. Read the current list before you treat a version as final.
- Refusal is a successful output when the notes are silent.
- This lab invents no customer story.
The worked example is a library card, not a person. If the card lacks a due date, the answer is that the card lacks it.
Visual
A silent card
- Card text: title and author only.
- Question: when is it due?
- Accepted answer: the card does not say.
- Rejected answer: any date.
Quiz
Ecosystem
- Citation
- A pointer to a passage you actually retrieved.
Sisters: Search indexes, Embeddings, Rerankers, Citations.
A voice agent and a chat agent can share the same note index.
The capstone answers only from notes you are allowed to use.
Config
- Write the goal in one sentence.
- Name the input and the allowed output.
- Save the trace next to the result.
Troubleshooting
- The answer looks fluent and is wrong. Check whether a source passage actually contains the claim.
- The loop never stops. Set a step cap and stop when the tool result repeats.
Sources and go deeper
- OWASP Top 10 for Large Language Model Applications community last checked 2026-10
- Lewis and co-authors, Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks, 2020 paper last checked 2026-10
- Retrieval-augmented generation — Wikipedia wikipedia last checked 2026-10