Module 06 Summary
What this module established
The dict is the join: keys are template variables, values are runnables. Format documents explicitly and put the id in the context text, or the model has nothing to cite - which is the most common reason a grounding prompt produces uncited answers.
Carry forward
- Refusal requires scored retrieval and a threshold.
similarity_searchalone never comes back empty. - Report what was retrieved, not what the answer claims to cite. Parsing citations out of the answer reports the model's claim.
- Grounding limits the input, not the output. Extrapolation and merging both cite correctly and assert more than the evidence supports.
Before moving on
Move on when your refusal path is a branch in code with a measured threshold, and the unsupported-terms check runs on every answer.
