All Questions
Rag And Retrieval hard

Auditors find that 12% of citations in your RAG answers point to real internal documents that were not in the retrieved context for that query. Some cited passages do not even contain the claimed fact. What design enforces grounded citations?

  1. A Fine-tune the generator on the internal corpus, so its memory of documents is accurate enough that citing them from memory becomes reliable.
  2. B After generation, embed each answer sentence and attach the nearest document in the whole index as its citation, replacing the model's picks.
  3. C Give each retrieved chunk an ID, require citations to reference only those IDs, and verify each cited span supports its claim before returning.
  4. D Lower the sampling temperature to zero, so the model deterministically reproduces citation strings it has seen and stops inventing new ones.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions