MediAssist-AI is a production-ready Retrieval-Augmented Generation (RAG) chatbot for medical question answering. It combines LangChain, OpenAI, Pinecone vector search, and a Flask web interface to deliver context-aware responses from your medical knowledge base.
Built and maintained by Shraddha3838 (Coder Shraddha).
- PDF ingestion pipeline with chunking and metadata normalization
- HuggingFace embeddings (
all-MiniLM-L6-v2) stored in Pinecone - GPT-powered RAG responses with safety-focused system prompts
- Responsive chat UI with real-time AJAX messaging
- Docker support and GitHub Actions CI/CD for AWS ECR + EC2 deployment
- Health check endpoint at
/health
| Layer | Technology |
|---|---|
| Backend | Python, Flask |
| Orchestration | LangChain |
| LLM | OpenAI GPT |
| Vector DB | Pinecone |
| Embeddings | Sentence Transformers |
| Deployment | Docker, AWS ECR, EC2, GitHub Actions |
mediassist-ai/
├── app.py # Flask application entrypoint
├── store_index.py # Embedding upload script
├── src/
│ ├── config.py # Environment-driven configuration
│ ├── helper.py # PDF loading and text splitting utilities
│ └── prompt.py # RAG system prompt
├── data/ # Place medical PDF files here
├── templates/ # HTML templates
├── static/ # CSS assets
├── Dockerfile
└── .github/workflows/ # CI/CD pipeline
git clone https://github.com/Shraddha3838/git.git
cd gitconda create -n mediassist python=3.10 -y
conda activate mediassistpip install -r requirements.txtCopy the example file and add your API keys:
cp .env.example .envPINECONE_API_KEY=your_pinecone_key
OPENAI_API_KEY=your_openai_keyPlace your PDF files inside the data/ directory.
python store_index.pypython app.pyOpen http://localhost:8080 in your browser.
docker build -t mediassist-ai .
docker run -p 8080:8080 --env-file .env mediassist-ai- Create an ECR repository and EC2 instance with Docker installed.
- Configure a self-hosted GitHub Actions runner on EC2.
- Add these repository secrets:
AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYAWS_DEFAULT_REGIONECR_REPOPINECONE_API_KEYOPENAI_API_KEY
Push to main to trigger automated build and deployment.
MediAssist-AI is intended for educational and informational use only. It does not provide medical diagnosis or emergency guidance. Always consult a licensed healthcare provider for medical decisions.
Shraddha3838 — Fullstack Developer & AIML Engineer
GitHub: https://github.com/Shraddha3838
This project is licensed under the MIT License. See LICENSE for details.