Boss lesson · Unit 02
Answer from documents
Ground the answer, cite sources, find where it failed
What you practise
- Ingest, retrieve, build the prompt, cite sources, refuse when the context lacks the answer
- Telling a retrieval miss from a generation mistake
Try a question from this lesson
Pick one
A handbook bot is asked how many sick days contractors get. The handbook covers only employees (10 days). The bot says "Contractors get 10 sick days." What was missing?
Correct answer
A rule to use only the sources and admit when they lack it
Why
The retrieved text was about sick days, so the model stretched it to fit the question. Unless told that "the sources do not say" is an acceptable answer, a model fills the gap with something plausible.
The idea
Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.
Concept
Grounding rules
A grounded prompt gives the model numbered sources and three rules: answer only from the sources, cite the number behind each claim, and say plainly when the sources do not contain the answer.
The last rule matters most. Without it, a gap gets filled with something plausible.
Answer using only the sources.
Cite them like [1]. If they do
not contain the answer, say so.
[1] Sick leave: 10 days a year.
[2] Leave resets on 1 January.
Question: When does leave reset?11 more exercises in the app
- 1× order the lines
- 5× multiple choice
- 2× type the answer
- 1× fill the blanks
- 1× true or false
- 1× match the pairs
Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.