Skip to content

syedsaadali11/SafeMeds-Agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  SafeMeds Assistant

๐Ÿ’Š 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)

โš™๏ธ Behind the Scenes

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

๐Ÿš€ Live Features

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

๐Ÿงฐ Tech Stack

Layer Tools Used
๐Ÿง  LLM OpenAI, OpenRouter
๐Ÿ“š Vector Search Sentence Transformers + ChromaDB
๐Ÿ“ฆ OCR EasyOCR, OpenCV
๐Ÿง  Agent Logic LangGraph
๐Ÿ’ป UI Streamlit
๐Ÿ”Š Voice Streamlit Mic Recorder (optional)

๐Ÿ—ƒ๏ธ Dataset Used

  • DDInter (Drugโ€“Drug Interactions):
    A curated dataset of 222,000+ known drugโ€“drug interactions, embedded for fast and accurate retrieval.

๐Ÿ‘๏ธ Screenshots

๐Ÿ  Home View

Home

โ„น๏ธ About SafeMeds

About

๐Ÿค– Assistant Panel

Assistant

๐Ÿ–ผ๏ธ Image-Based Queries

Upload OCR Result

๐Ÿ’Š Drug Interaction Examples

Example 1 Example 2 Example 3

๐Ÿ’ก Drug Usage Queries

Use 1 Use 2

๐Ÿฉบ Condition-Based Consultancy

General BP-1 BP-2

โš ๏ธ Disclaimer

This app is for educational and informational purposes only. It does not replace medical consultation. Always consult a certified doctor before taking medication.


๐Ÿ”’ About the Source Code

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


๐Ÿค Let's Collaborate

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


๐Ÿ“œ License

This is a preview version of SafeMeds under a limited license.
Do not deploy, reuse, or commercialize without permission.


About

๐Ÿง  SafeMeds is an intelligent LangGraph-based medical assistant that checks drug interactions, recognizes medicines from images, and answers health-related questions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages