All Questions
Rag And Retrieval medium

An enterprise assistant indexes HR, finance, and engineering documents in one shared index. It retrieves the top 10 chunks, generates an answer, and then a post-processor removes citations to documents the user cannot access. A security review flags this design. Why, and what is the fix?

  1. A The post-filter is fine, but it should also redact sentences that quote restricted documents before returning.
  2. B The model already read restricted content; enforce ACLs as a filter inside the retrieval query so it never enters the prompt.
  3. C The post-filter is fine as long as the system prompt instructs the model never to reveal content from restricted documents.
  4. D Restricted chunks should be retrieved but summarized first, so the generator only sees a high-level paraphrase of them.

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

Get the app

Related questions