Emmimal

A post-retrieval temporal layer for RAG systems — validity filtering, time decay, document kind classification, and hybrid reranking in one pipeline.

26
2
100% credibility
Found May 11, 2026 at 26 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Python
AI Summary

A lightweight Python tool that improves AI question-answering by filtering and ranking documents based on their freshness, validity, and relevance to time-sensitive queries.

How It Works

1
📖 Discover the Fix for Outdated AI Answers

You read an article about how regular AI question-answering often pulls up old or expired info, and learn about this simple add-on that makes it smart about time.

2
💾 Grab the Ready-to-Run Examples

You download the three short files and install the one everyday math tool it needs, so everything is set up in moments.

3
🔍 See the Before and After Magic

You run the demo questions and watch side-by-side: plain AI grabs stale facts, but this smart version surfaces the freshest, most true ones first.

4
Add Your Own Knowledge Collection

You list your documents like policies, news, or guides, adding simple dates for when they were made or expire, and feed them into the system.

5
💭 Ask Real Questions Like a Pro

You type in everyday questions about current limits, latest updates, or today's news, and tweak how much 'freshness' matters.

🎉 Enjoy Spot-On, Timely Answers

Your AI now ignores outdated junk and highlights what's current and relevant, giving you trustworthy results every time.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 26 to 26 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is temporal-rag?

Temporal-rag is a Python library that adds a post-retrieval temporal layer to any RAG pipeline, fixing how standard vector search blindly retrieves stale or expired documents. After your retriever pulls candidates, it runs validity filtering to hard-remove outdated info, classifies documents by kind (static facts, versioned updates, time-bound events), applies time decay and recency scoring, then hybrid reranks with semantic similarity. One `retrieve()` call handles it all, no heavy dependencies beyond numpy.

Why is it gaining traction?

It stands out on temporal rag github by slotting into existing RAG setups without reindexing or new infra—pure Python, 15-30ms latency on 20 docs. Demos contrast naive RAG failures (expired policies topping results) against temporal rag pipeline wins, like surfacing active events over old versions. Advanced patterns like adaptive weighting from query text and failure logging make production tweaks straightforward.

Who should use this?

RAG engineers maintaining docs, APIs, or policies where superseded facts cause bad answers, like support bots citing deprecated endpoints. Teams handling news, research, or announcements need its event classification and decay to prioritize fresh signals. Skip if your corpus is fully static.

Verdict

Grab it for temporal rag needs—MIT licensed, excellent docs, reproducible demos make evaluation instant despite 26 stars and 1.0% credibility score signaling early maturity. Solid starting point, tune configs per domain before prod.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.