Viraj0601/agentic-rag-eval-lab
0
Agentic RAG + Eval Lab
A live demo showcasing agentic AI, hybrid RAG (FAISS + BM25), LLM evaluation, and observability — built for Hugging Face Spaces on free CPU.
Live demo: [add your Space URL here]
What it does
- Tab 1 — Agent Chat: Chat with an agent over a preloaded sample corpus. Retrieves relevant chunks, generates grounded answers with citations, and (in later phases) shows tool-call traces.
- Tab 2 — Eval Lab: Run a fixed eval set and measure recall@k, hit rate, and latency (Phase 4).
Tech stack
Local setup
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
cp .env.example .env # add your GROQ_API_KEY
python app.pyIf you're behind a corporate proxy with SSL issues when downloading the embedding model, add HF_SSL_VERIFY=false to your .env (local dev only; not needed on HF Spaces).
Screenshots
<!-- Add screenshots after deployment --> | Agent Chat | Eval Lab | |---|---| | screenshot placeholder | screenshot placeholder |
Deploy to Hugging Face Spaces
- Create a new Space (SDK: Gradio, hardware: CPU basic).
- Push this repo to the Space.
- Add
GROQ_API_KEYas a Space secret (Settings → Variables and secrets). - The Space auto-builds from
requirements.txtand launchesapp.py.
License
MIT — sample corpus text is original and public-domain style.
