Users trust answers with citations linking to source chunks—especially for legal, medical, and internal policy assistants.
UI patterns
- Footnotes [1][2] mapped to chunk metadata
- Quote-only mode—answer must be substring of provided context
- Highlight passages in side panel
Prompt instruction
instruction = """Use ONLY PROVIDED_CONTEXT. After each claim add [n] matching chunk id.
If context is insufficient, reply: INSUFFICIENT_CONTEXT.""""
Verification
Post-check that cited chunk IDs exist and support the sentence—automate with entailment models or human spot checks.
Important interview questions and answers
- Q: INSUFFICIENT_CONTEXT benefit?
A: Reduces hallucination when retrieval misses the answer.
Self-check
- Name two citation UI patterns.
- What should the model do without evidence?
Tip: INSUFFICIENT_CONTEXT is a feature—users prefer honest limits over fake certainty.
Interview prep
- INSUFFICIENT_CONTEXT?
Explicit refusal when retrieval lacks evidence—reduces hallucination.
- Quote-only mode?
Answer must be supported by provided passages only.