๐ SafeMeds is a Medical Assistant Chatbot Agent
Technically, it's a:
LangGraph-powered AI agent with OCR and LLM capabilities, deployed via a Streamlit-based conversational UI.
Functionally, it's a:
Conversational medical assistant that helps users:
- โ Check drugโdrug interactions
- โ Understand medications and their uses
- โ Upload medicine box images for recognition
- โ Use voice or text to ask health-related questions (if enabled)
SafeMeds is a hybrid AI agent, combining:
- ๐ง LLM Intelligence (via OpenAI or OpenRouter)
- ๐ Embedding-based retrieval (using DDInter dataset in ChromaDB)
- ๐งพ OCR (EasyOCR) to process text from medicine packaging
- ๐ LangGraph decision-making, to dynamically route between tools
| Feature | Description |
|---|---|
| ๐ฌ Chat Interface | Ask about drug interactions, usage, or conditions |
| ๐ผ๏ธ Image Upload | Upload a medicine box image to get name & usage |
| ๐ Voice Input | Speak your query (optional) |
| ๐งพ OCR | Detects English text from medicine packaging |
| ๐ง Smart Agent | Uses LangGraph to choose between retrieval & generation |
| ๐งฑ Modular Architecture | Easily extendable and deployable |
| Layer | Tools Used |
|---|---|
| ๐ง LLM | OpenAI, OpenRouter |
| ๐ Vector Search | Sentence Transformers + ChromaDB |
| ๐ฆ OCR | EasyOCR, OpenCV |
| ๐ง Agent Logic | LangGraph |
| ๐ป UI | Streamlit |
| ๐ Voice | Streamlit Mic Recorder (optional) |
- DDInter (DrugโDrug Interactions):
A curated dataset of 222,000+ known drugโdrug interactions, embedded for fast and accurate retrieval.
| Upload | OCR | Result |
|---|---|---|
![]() |
![]() |
![]() |
| Example 1 | Example 2 | Example 3 |
|---|---|---|
![]() |
![]() |
![]() |
| Use 1 | Use 2 |
|---|---|
![]() |
![]() |
| General | BP-1 | BP-2 |
|---|---|---|
![]() |
![]() |
![]() |
This app is for educational and informational purposes only. It does not replace medical consultation. Always consult a certified doctor before taking medication.
To prevent misuse and protect intellectual property:
- ๐ Core files like
langgraph_runner.py, agent logic, and embedding logic are intentionally excluded from this public repo. - Only non-sensitive interface code and screenshots are shown for demonstration purposes.
๐ฌ For access or collaboration:
Email: syedsaadi427@gmail.com
I'm Syed Saad Ali, a full-stack AI developer passionate about applying LLMs in healthcare.
- Looking to license or deploy SafeMeds?
- Want to extend it for hospitals, NGOs, or pharmacies?
- Interested in hiring or partnering?
Let's talk! Reach me at syedsaadi427@gmail.com
This is a preview version of SafeMeds under a limited license.
Do not deploy, reuse, or commercialize without permission.













