All Questions
Rag And Retrieval easy

An internal RAG assistant indexes HR documents, some of which only managers may read. All employees use the same assistant. Where should access control be enforced?

  1. A In the retrieval query, filtering chunks by the user's ACL before they ever reach the prompt.
  2. B After generation, by scanning the answer and redacting text drawn from restricted documents.
  3. C In the system prompt, instructing the model never to reveal content the user cannot access.
  4. D At ingestion only, by skipping restricted documents so that they are never embedded at all.

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

Get the app

Related questions