Identity first

  • Authenticate the user before any retrieval.
  • Map user → permitted document IDs or labels.

Authorize at retrieval time

  • Filter the vector/search query by authorization claims.
  • Never post-filter after the model has already seen content.

Constrain the assistant

  • Limit tools to read-only unless explicitly approved.
  • Refuse when no authorized context is available.

Prove it works

  • Test cross-user access attempts.
  • Log authorization decisions for audit review.
  • Document residual risks for stakeholders.

Related reading