A simple medical chatbot built for clinicians to answer simple medical questions
# MediAssist β AI Clinical Decision Support System π₯π€
> RAG-powered AI assistant that helps clinicians query medical guidelines, drug interactions, and diagnostic protocols in natural language.
---
## π― Problem
Clinicians spend valuable minutes searching through dense guidelines and drug databases.
In low-resource settings, that delay costs lives.
MediAssist lets a doctor ask: *"What's the first-line treatment for pre-eclampsia?"*
and get an accurate, cited answer in seconds.
---
## β¨ Features
- π **Document ingestion** β upload clinical PDFs, guidelines, protocols
- π **Semantic search** β finds relevant content even with imperfect queries
- π€ **LLM response generation** β clear answers with source citations
- π§ **Memory** β maintains context across multi-turn conversations
- β‘ **Optimised for low bandwidth** β minimal token usage, fast responses
---
## π Architecture
```
PDF Documents β Text Chunking β Embeddings β Pinecone Vector Store
β
User Query β Embedding β Similarity Search β Relevant Chunks
β
LLM (GPT / Claude) β Cited Answer
```
---
## π Tech Stack
| Layer | Technology |
|-------|-----------|
| LLM | OpenAI GPT-4 / Claude |
| Orchestration | LangChain |
| Vector DB | Pinecone |
| Embeddings | OpenAI text-embedding-3-small |
| API | FastAPI |
| UI | Streamlit |
| Deployment | Hugging Face Spaces |
---
## π Quick Start
```bash
git clone
github.com
cd mediassist
pip install -r requirements.txt
cp .env.example .env # add your API keys
streamlit run app.py
```
---
## πΈ Demo
Live Demo β
---
## π Built By
**Purity Kirimi** β AI Engineer, Nairobi Kenya
LinkedIn Β· GitHub