AI EngineeringInterview preparation
Advanced·Scenario·2 min read

Unauthorized documents are removed after top-k, leaving no results. What is wrong?

Practice this question
  • The retrieval process selected candidates from an ineligible corpus.
  • I move supported eligibility filters into retrieval and recheck object permissions before evidence reaches the model.
  • Post-filtering alone can both underfill results and expose data upstream.
Adapted from 13_AI.MD · “29.5 Vector databases”. Code examples are study fragments. Difficulty and core labels are editorial estimates; version-specific behavior should be checked against your project.