LEVEL 3 · ENGINEER

RAG Freshness Pipeline

Build a content-addressed document index with deletion tracking, version checks, and freshness-aware retrieval.

4 stages~8 hoursPythoncore
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.

  1. Normalize documents and fingerprint content

    Canonically equivalent é encodings receive identical content hashes.

    starter · ~2 hours · Python

    normalizedocumentsandfingerprint
  2. Plan inserts updates deletions and refreshes

    A removed document appears in delete, so stale chunks cannot remain searchable.

    core · ~2 hours · Python

    planinsertsupdatesdeletions
  3. Persist an index with atomic replacement

    A stale writer is rejected and the last committed snapshot stays readable.

    core · ~2 hours · Python

    persistanindexwith
  4. Exclude expired evidence at query time

    An expired matching note is excluded even when its keyword score is perfect.

    stretch · ~2 hours · Python

    excludeexpiredevidenceat

Lessons this project uses

All projects · Course catalog · Source on GitHub