🩺 MediBot AI – Your Doctor Analysis Chat Assistant 💡 Inspiration
The inspiration came from a simple observation: Patients receive X-rays, blood reports, and medical scans filled with numbers and shadows they cannot interpret. This creates fear, confusion, and dependency.
We wanted to build something that could:
Explain reports in plain language.
Answer follow-up questions like a virtual doctor assistant.
Support multi-user case discussions (patient + doctor + AI).
Healthcare is deeply human, but medical data often feels cold and inaccessible. MediBot AI was inspired by the idea of turning reports into conversations.
⚙️ How We Built It
We built MediBot AI as a Retrieval-Augmented Generation (RAG) pipeline on top of OpenAI’s models.
🔑 Core Components:
Report Analysis & Storage
Reports (X-rays, CBCs, scans) are parsed and stored in JSON (analysis_store.json).
Each report is embedded using OpenAI’s text-embedding-ada-002.
RAG Engine
Query embeddings are compared with report embeddings using cosine similarity:
The top-k most relevant contexts are retrieved.
Chat Layer
Context-aware answers are generated using GPT (gpt-3.5-turbo) with retrieved findings.
Conversation histories stored in chat_store.json and qa_chat_store.json.
Frontend
Streamlit prototype for uploading reports and chatting with the assistant.
Simple doctor–patient style interface with Q&A rooms.
🔧 Stack
Languages: Python 3.12, JavaScript (React/Streamlit UI)
Frameworks: FastAPI, Streamlit, scikit-learn, NumPy
Database (prototype): JSON stores → scalable to PostgreSQL + pgvector
AI Models: OpenAI GPT + embeddings
🧗 Challenges We Faced
Medical Ambiguity: Reports don’t always give clear answers. We had to train the chatbot to say “possible fracture, needs follow-up” instead of overconfident answers.
Grounding Responses: Avoiding hallucinations by strictly retrieving from analyzed reports.
User Experience: Designing conversations that felt empathetic and clear for patients.
Data Storage: Moving from JSON-based storage to scalable databases while keeping embeddings fast.
🏅 Accomplishments We’re Proud Of
Built a working RAG chatbot that can analyze reports and chat naturally.
Designed doctor–patient style chatrooms for collaborative case discussions.
Demonstrated a human impact story (“The Whispering Report”) showing how MediBot AI reduces patient anxiety.
Created a scalable prototype ready for healthcare pilot testing.
📚 What We Learned
How to implement a retrieval-augmented pipeline combining embeddings with GPT.
The importance of explainability in healthcare AI — patients want clarity, not just answers.
How to balance medical accuracy with simplicity for non-expert users.
Why trust and safety are essential: disclaimers, clinical correlation, and responsible AI usage.
🚀 What’s Next
Expand to more modalities (MRI, CT scans, pathology slides).
Build a doctor dashboard for clinical settings.
Integrate with EHR systems for real-world hospital workflows.
Add voice interface for rural/elderly accessibility.
Ensure HIPAA/GDPR compliance for secure deployment. ✨ MediBot AI = Turning Reports into Conversations.
Built With
- dev
- fastapi
- javascript
- json
- lightweight
- numpy
- openai
- postgresql
- prototype
- python
- rag
- react/streamlit
- scikit-learn
- sqlite
- stores
- streamlit
- uuid
Log in or sign up for Devpost to join the conversation.