DigiDoctor/README.md

43 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

2024-12-09 20:43:48 +00:00
# DigiDoctor: AI-Powered Medical Assistant
DigiDoctor is a medical chatbot powered by **Retrieval-Augmented Generation (RAG)**. It uses the **MedQuAD dataset** for retrieval and **Llama3.2** (via Ollama) for generating real-time AI responses.
## Features
- Intelligent medical assistant using a RAG pipeline.
- Provides reliable responses based on the MedQuAD dataset.
- Real-time streaming of AI-generated answers via Ollama.
---
## Prerequisites
- Python 3.8 or later.
- **[Ollama](https://ollama.ai)** installed and running on `http://localhost:11434`.
---
## Installation and Setup
### 1. Clone this repository:
2024-12-09 20:46:45 +00:00
git clone https://git.digimantra.com/SHREY/DigiDoctor.git <br />
2024-12-09 20:43:48 +00:00
cd DigiDoctor
2024-12-10 04:18:50 +00:00
## 2. Install dependencies in virtual environment:
python3 -m venv venv <br />
source venv/bin/activate <br />
2024-12-09 20:43:48 +00:00
pip install -r requirements.txt
## 3. Start the Ollama server:
2024-12-10 04:31:00 +00:00
curl -fsSL https://ollama.com/install.sh | sh <br />
2024-12-09 20:43:48 +00:00
ollama serve
## 4. (Optional) Generate FAISS index if not already present:
2024-12-09 20:47:10 +00:00
If the medquad_index.faiss file is missing or needs to be rebuilt: <br />
2024-12-09 20:43:48 +00:00
python3 preprocess.py
## 5. Running the Application
2024-12-09 20:47:38 +00:00
Start the Streamlit app: <br />
2024-12-09 20:43:48 +00:00
streamlit run app.py