JanaAlzobidi/bioasq-rag
0
๐งฌ BioASQ RAG Demo
A biomedical question-answering system built on Retrieval-Augmented Generation (RAG):
- Corpus: 40,221 biomedical passages from the BioASQ benchmark
- Retriever: `pritamdeka/S-PubMedBert-MS-MARCO` sentence encoder + FAISS index
- Generator: LLaMA-3.3-70B-Versatile (hosted on Groq)
- UI: Gradio with collapsible retrieved-evidence panel
The system retrieves the top 5 most semantically similar biomedical passages for each query, then generates an answer that is strictly grounded in those passages.
How it works
question โ S-PubMedBert encoder โ query vector
โ
FAISS (40,221 vectors)
โ
top-5 relevant passages
โ
LLaMA-3.3-70B (Groq) + strict prompt
โ
grounded biomedical answerDisclaimer
This system is provided for informational and research purposes only. It is not a substitute for professional medical advice, diagnosis, or treatment. Always consult a qualified healthcare professional for clinical questions.
Setup notes for forks
If you fork this Space, you'll need to:
- Provide your own
GROQ_API_KEYunder Settings โ Repository secrets. - Ensure the
data/folder containsbioasq_passages.csvandbioasq_faiss.index(use Git LFS for files larger than 10 MB). - The first launch takes 1โ2 minutes to download the embedding model (~440 MB) and build the runtime. Subsequent launches are faster.
Evaluation summary
See the accompanying project report for full evaluation details (RAGAS, LLM comparison, error analysis).
