Meditron Chatbot is a Medical Retrieval-Augmented Generation (RAG) application designed to provide relevant answers along with page numbers and context. The chatbot is built to avoid hallucinations, ensuring accurate and reliable responses. It leverages an open-source instruct Large Language Model (LLM), embeddings, and a vector store that operates locally.
- HTML
- Bootstrap
- Flask
- FastAPI
- Meditron
- Hugging Face Instruct Embeddings
- Qdrant (running using Docker)
- Langchain
- CTransformers (as orchestration frameworks)
- Docker
- Python 3.8+
- Flask
- FastAPI
-
Clone the Repository
git clone https://github.com/HR-04/Medical_App_RAG.git cd meditron-chatbot -
Set Up the Environment
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install Dependencies
pip install -r requirements.txt
-
Run Qdrant using Docker
docker run -p 6333:6333 -d qdrant/qdrant
-
Start the Back End
# In one terminal flask run # In another terminal uvicorn app:rag.app --reload or python rag.py
-
Open the Front End
- Open
index.htmlin your browser.
- Open
- Open the web application in your browser.
- Enter your medical query into the chat interface.
- Receive responses with relevant information, including page numbers and context.
We welcome contributions! Please fork the repository and submit a pull request.