Prepare an index rebuild plan
A safe index rebuild stages a candidate, validates counts and retrieval, and retains the current index until the candidate is accepted. Do not delete the only working index first.
Understand the pattern
A safe index rebuild stages a candidate, validates counts and retrieval, and retains the current index until the candidate is accepted. Do not delete the only working index first.
Interpret the evidence
Verify index-42 before switching traffic away from index-39.
A tempting mistake
Delete index-39 immediately to make room for an unverified rebuild.
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-014.json{
"fixture": "Fictional training data; not a live measurement.",
"current_index": "index-39",
"candidate_index": "index-42",
"candidate_verified": false
}Exit status: 0. The command completed successfully in the training fixture.
$ jq .candidate_verified /opt/ai-lab/cases/aiops-retrieval-embeddings-014.jsonfalse
Exit status: 0. The command completed successfully in the training fixture.
$ printf '%s\n' 'stage-and-verify-index' > /home/learner/lab/aiops-retrieval-embeddings-014-decision.txt(no output; exit 0)
Exit status: 0. The command completed successfully in the training fixture.
Explain it
Apply it elsewhere
Keep the momentum.
Complete the lab, then explain and apply the pattern.
Next: Build retrieval evidenceTry an incident drillAnonymous 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
- 01Compare retrieval configurationsCompare retrieval configurations on the same query set, corpus and relevance judgments. Otherwise a score change may come from different evidence rather than a better retriever.Practice
- 02Build retrieval evidenceA retrieval evidence bundle records query, filters, index and embedding revisions, selected source IDs and failure cases. Redact sensitive query content when sharing outside its boundary.Practice
- 03Retrieval checkpointRetrieval readiness requires fresh, accessible, relevant evidence as well as a working index. An answer should not hide a missing or unsupported evidence boundary.Practice