Mental model
Module 15: Keep the index synchronized with reality- Design ingestion, updates, re-indexing, deletion and freshness checks so the knowledge system does not quietly serve stale evidence.
Design ingestion, updates, re-indexing, deletion and freshness checks so the knowledge system does not quietly serve stale evidence.
Engineering focus: Keep the index synchronized with reality
Design ingestion, updates, re-indexing, deletion and freshness checks so the knowledge system does not quietly serve stale evidence.
You are not expected to know the engineering vocabulary before using the idea. Formal terminology comes after the mental model.
Carry one evidence-grounded knowledge assistant through all 18 modules. Preserve source IDs, retrieval evidence, evaluation cases, authority decisions and security assumptions so every improvement is measurable.
A knowledge index is a deployed data product, not a one-time upload. Sources are created, updated, superseded, deleted and re-indexed over time.
Create without delete is not a complete knowledge lifecycle.
Policies are replaced, runbooks are corrected and access rights change. The index must reflect those changes predictably.
Removing a source from the repository is not enough if its vectors remain searchable.
Track source modified time, ingestion time, indexed version and pipeline failures.
When embeddings or chunking change, record the new index generation and support controlled cutover/rollback.
Module 15: Keep the index synchronized with realityDISCOVERED -> PARSED -> INDEXED -> ACTIVE
|
+-> SUPERSEDED -> RETIRED
+-> DELETED -> PURGED/RETAINED-PER-POLICY
Every transition emits version + timestamp + outcome.The assistant keeps returning an old policy after an update.
Freshness requires observable update and delete paths.
Goal: Simulate idempotent upsert and deletion in a tiny JSON index manifest.
python3 - <<'PY2'
index={'doc1':{'version':1},'doc2':{'version':1}}
index['doc1']={'version':2}; index.pop('doc2',None)
assert index=={'doc1':{'version':2}}; print(index)
PY2Record the intermediate source IDs, ranks, metadata or state produced by the baseline. Explain which pipeline layer this evidence belongs to.
Update a source but intentionally keep the previous indexed version active. Detect the duplicate authority and then retire/delete the stale version.
Freshness requires observable update and delete paths. State the failing layer, change only that layer, then repeat the verification checks.
Record: hypothesis → evidence → change → observed result → remaining limitation. Keep this note with the running Evidence Desk project.
Production RAG improves when every change can be traced to evidence at a specific pipeline layer. In production, retain the before/after evidence so the same failure can become a regression test.
Upsert and delete paths tested
Freshness/index version observable
Stale-source regression case passes
Otherwise removed content may remain retrievable.
Source version/time against indexed version/time.
When embeddings, chunking or major preprocessing changes.
To support reproducibility, controlled cutover and rollback.
Progress is saved in this browser immediately. When you sign in to My Learning, it can also sync across devices.
Attempt the core lab and knowledge checks before marking the module complete.