abasu9/RxRAG-MeQSum
0
RxRAG: Agentic Healthcare QA (MeQSum) — Hugging Face Space
A CPU-only Agentic RAG demo for healthcare Q&A using the MeQSum dataset.
- Frontend: Gradio
- LLM: tiny local Transformers model (
google/flan-t5-small) for low-cost inference - Retriever: ChromaDB with
all-MiniLM-L6-v2embeddings - Dataset: https://huggingface.co/datasets/abasu9/RxRAG-MeQSum (auto-downloaded on first launch)
How it works
1) On first startup, the Space downloads the dataset repo and scans *.md files. 2) It embeds the docs and builds a Chroma index under data/index/. 3) The Agent pipeline runs: plan → retrieve → draft → reflect → cite, then returns an answer with citations.
Run locally (optional)
pip install -r requirements.txt
python app.py
# then open the Gradio URL printed in the consoleNotes
- To switch models, edit
MODEL_NAMEinrag/llm_local.py(use a small T5/BART for CPU). - If you fork this Space, ensure the dataset stays public or update
HF_DATASET_IDinrag/ingest_hf.py.
