Label retrieved chunks [c1]..[ck] in context, instruct the model to cite [cN] per factual sentence or return structured {claim, chunk_ids[]} items, and verify in Python that every cited ID is in range [1..k], stripping or flagging ungrounded claims before rendering clickable source links.
Follow-up Interview Question · How can you highlight the exact supporting snippet inside the source document UI?