LEVEL 3 · ENGINEER
RAG Freshness Pipeline
Build a content-addressed document index with deletion tracking, version checks, and freshness-aware retrieval.
Normalize documents and fingerprint contentPlan inserts updates deletions and refreshesPersist an index with atomic replacementExclude expired evidence at query time
YOU END UP WITH
A stale-answer incident lab proving an edited or deleted policy can no longer be cited.
USEFUL FOR
- A stale-answer incident lab proving an edited or deleted policy can no longer be cited.
- The importer expects the complete corpus, not a partial change feed.
WHY THESE LANGUAGES
- Python Stdlib data structures, explicit algorithms and deterministic local tests.
PROJECT OUTLINE
RAG Freshness Pipeline in 4 stages
Build a content-addressed document index with deletion tracking, version checks, and freshness-aware retrieval.
Normalize documents and fingerprint content
Canonically equivalent é encodings receive identical content hashes.
starter · ~2 hours · Python
normalizedocumentsandfingerprintPlan inserts updates deletions and refreshes
A removed document appears in delete, so stale chunks cannot remain searchable.
core · ~2 hours · Python
planinsertsupdatesdeletionsPersist an index with atomic replacement
A stale writer is rejected and the last committed snapshot stays readable.
core · ~2 hours · Python
persistanindexwithExclude expired evidence at query time
An expired matching note is excluded even when its keyword score is perfect.
stretch · ~2 hours · Python
excludeexpiredevidenceat