Skip to content
Clairos Learn

Retrieval and embeddings · Lesson 10 of 16 · 5 min

Diagnose empty retrieval

Empty retrieval can come from filters, missing documents or an unavailable index. Inspect those boundaries before loosening access restrictions or inventing an answer.

Mastery 0/3Run itExplain itApply it
learner@clairosSimulated AI Ops lab
learner@clairos:~ $
↑ history · Tab complete · Ctrl+C cancel · Esc, Tab to leaveExit 0

Understand the pattern

Empty retrieval can come from filters, missing documents or an unavailable index. Inspect those boundaries before loosening access restrictions or inventing an answer.

Interpret the evidence

Inspect the tenant filter and source coverage without bypassing access boundaries.

A tempting mistake

Disable every tenant filter whenever retrieval is empty.

All names, measurements, prices, versions, and thresholds in this exercise are fictional training data. The evidence supports this bounded scenario, not a claim about a live provider.

Worked example and expected result
$ cat /opt/ai-lab/cases/aiops-retrieval-embeddings-010.json
{
  "fixture": "Fictional training data; not a live measurement.",
  "index_ready": true,
  "documents": 120,
  "tenant_filter": "tenant-c",
  "matching_documents": 0
}

Exit status: 0. The command completed successfully in the training fixture.

$ jq .matching_documents /opt/ai-lab/cases/aiops-retrieval-embeddings-010.json
0

Exit status: 0. The command completed successfully in the training fixture.

$ printf '%s\n' 'inspect-filter-scope' > /home/learner/lab/aiops-retrieval-embeddings-010-decision.txt
(no output; exit 0)

Exit status: 0. The command completed successfully in the training fixture.

Try a variation

Name the assumption that would have to change for “inspect-filter-scope” to stop being the justified action. Do not silently replace missing evidence with a guess.

Explain it

What does the evidence in “Diagnose empty retrieval” justify?

Apply it elsewhere

A colleague concludes: “Disable every tenant filter whenever retrieval is empty.” What should you do?

Keep the momentum.

Complete the lab, then explain and apply the pattern.

Next: Inspect duplicate chunksTry an incident drill

Anonymous lesson and mastery progress lasts for this session. Sign in to keep synced lesson XP between sessions; mastery stays device-local. No speed bonus, lost lives, or hint penalties.

Keep learning

  1. 01Spot a missing citationA citation must connect a claim to source evidence that actually supports it. Merely including a document identifier somewhere in an answer is not adequate grounding.Practice
  2. 02Inspect duplicate chunksDuplicate chunks can crowd a result list and reduce source diversity. Review stable document/chunk identifiers before deciding whether two similar passages are redundant.Practice
  3. 03Review metadata filtersMetadata filters are part of retrieval correctness and access control. A relevant passage from the wrong tenant is not an acceptable result.Practice