| title |
Medical Chatbot |
| emoji |
🩺 |
| colorFrom |
blue |
| colorTo |
green |
| sdk |
gradio |
| sdk_version |
5.44.1 |
| app_file |
app_gradio.py |
| pinned |
false |
| license |
mit |
A Retrieval-Augmented Generation (RAG) chatbot that answers medical questions using LangChain + FAISS.
Live Demo
- PDF → Chunks — Medical PDF is split into ~500-char chunks
- Chunks → Embeddings — Each chunk is embedded with
all-MiniLM-L6-v2
- Embeddings → FAISS Index — Stored for fast similarity search
- Query → Retrieve → Generate — User question retrieves top-4 chunks, LLM generates answer
git clone https://github.com/AyushDocs/medical_chatbot_rag.git
cd medical_chatbot_rag
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
# Build FAISS index (place PDF in data/ first)
python store_index.py
# Run Flask app
python app.py
| Component |
Model |
Size |
| Embeddings |
sentence-transformers/all-MiniLM-L6-v2 |
80MB |
| LLM |
google/flan-t5-base |
~250M params |