← Kashaf Noor's projects
Repo

rag-cost-latency-router

Benchmarks a cost-latency optimized RAG router: static vs adaptive top-k retrieval. Adaptive router uses similarity-score elbow detection to right-size context per query — no extra LLM calls. Tested on 50 QA pairs via Gemini: 17% fewer input tokens than static k=5, with higher Exact Match and F1. Includes a data-driven margin calibration script.

Built withPython

Comments · 0

No comments yet. Tried it? Tell Kashaf what worked, what didn't, or what you'd want next.
Sign in to comment

More from members

All projects

See what other members are building and what each project is looking for.