Retrieval and RAGAccess, completeness and answerabilityPrincipal
What may an assistant claim when a required policy source times out but other searches return results?
By Amit Kumar3 min readWorked answer includedReviewed 26 Sept 2026
The question
Interview question
A support assistant searches a manual, policy store and incident notes within two seconds. Policy search times out, yet the assistant says no exception exists because the responding sources mention none. Design source coverage state, deadlines, bounded recovery and response behavior. Contrast a missing required policy source with missing optional incident context.
Draft your approach first
Take a few minutes before you read the answer. Name the constraint that matters most, the failure you are designing for and how you would know it worked.
Reveal the worked answerWorked answer
The key missing bit is coverage. “No exception found in two responding sources” cannot become “no exception exists in the policy.” If the policy store is the source that could establish the exception, the result set is incomplete for this question. A federated retriever should return not only hits but a status for each required source: searched successfully at which revision, timed out, unavailable, skipped by policy, or returned zero after a complete search. Those statuses have different meanings. Elasticsearch's search response includes shard failure counts for a similar reason inside one engine. At the application layer, we need the same honesty across source systems.
The query planner should say which sources could answer which part of the question. For a policy exception, mark the policy store required. For a question about an incident log line, it may be optional. Give each source a deadline within the overall request deadline and record its response status, source revision, and authorization outcome. Partial hits can still be shown if they are useful, but the answerer gets the missing-source status as structured state, not an empty list that looks like “nothing matched.”
Under this scenario I would answer the general rule only with a clear limitation and avoid deciding eligibility. Something like: “I found the general rule in the manual, but the policy source did not respond, so I cannot check exceptions right now.” If the product requires a yes/no decision, return an unresolved state or route to a human. A confident negative claim is the most dangerous result of a partial search. The exact threshold depends on the question and source authority, not a blanket policy that any timeout makes every answer impossible.
The product team pushes on latency. I would use a bounded retry or an authoritative direct lookup if it can finish inside the remaining deadline. A recently verified snapshot may be usable for low-risk explanation if its age, permission scope, and policy effective time still meet the product contract. If the rule changes frequently or the consequence is material, an old cache is a poor substitute. Do not extend all requests by two seconds to wait for an optional wiki, and do not use an optional wiki to excuse missing required policy. Return the coverage decision in telemetry so we can measure how often users see incomplete answers.
Now switch the failure: incident notes time out, while the policy store and product manual both respond at coherent versions. The assistant can usually answer the policy question and omit incident context. That different outcome is why source dependency belongs in the query plan rather than a global “partial results allowed” switch.
There is still a security edge. A source marked unavailable because the principal cannot be authorized is not a reason to probe it through a broad service account and leak a title. The answer may say it lacks sufficient authorized evidence without confirming that a restricted exception exists. Test source outage, zero hits, authorization failure, and a stale policy snapshot separately. They may all look like an empty array to careless code, but they justify different user-facing claims.
Related questions
- How should retrieval find authorized evidence when the strongest global hits are restricted?Staff
- Why can filtered approximate vector search miss permitted results, and how would you fix it?Principal
- How should an assistant answer an exact account-count question when retrieval returns only a few notes?Staff
Keep practising retrieval and rag
Follow another question in this area, or search the complete library.
Get my essays on AI engineering and distributed systems by email. Subscribe to ArchCrux