All Questions
Ai Coding And Product Systems medium

Your workspace AI retrieves the top-k chunks from a shared vector index and passes them to the model with ACL metadata and a system prompt saying 'only use documents this user can access.' A user just received an answer quoting a private HR page they cannot open. What is the correct fix?

  1. A Strengthen the system prompt with explicit refusal examples so the model reliably skips chunks the user is not authorized to view.
  2. B Filter candidates by the user's ACLs inside the retrieval query so that unauthorized chunks never reach the prompt.
  3. C Run a second LLM pass over the final answer to detect and redact any sentences that appear to come from restricted pages.
  4. D Build a separate vector index per user containing copies of every document they can access, rebuilt whenever they open the app.

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

Get the app

Related questions