tdw-rag

Your vector search returns the 2021 answer with total confidence.

Cosine similarity has no idea what year it is. Every version of a document describes the same thing in the same words, so the archive wins on wording and the reader gets a price that changed three times since. Drag the half‑life and watch the ranking correct itself.

Decay curve and document ages
Ranking
pip install tdw-rag github.com/mohit-luthra/tdw-rag Kernels borrowed from adstock modelling.