A team plans to build a retrieval system with sensitive documents. Which foundation design best reduces the risk of inadvertent data disclosure through retrieval and prompting flows?

Answer

Pre-filter retrieval using tenant and authorization context, and apply output redaction/guardrails before returning results

Explanation

Authorization-aware retrieval prevents unauthorized documents from entering the generation context. Redaction/guardrails reduce the chance of leaking sensitive content even if retrieval errs.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list