This project is an end-to-end medical chatbot powered by Generative AI. The chatbot is designed to assist users with medical-related queries by leveraging advanced natural language processing (NLP) techniques. It uses a combination of Pinecone for vector storage, OpenAI for language generation, and various other technologies to provide accurate and concise answers to user questions.
- Python: The core programming language used for development.
- Flask: A lightweight WSGI web application framework for serving the chatbot.
- Pinecone: A vector database for storing and querying embeddings.
- OpenAI: For generating responses to user queries.
- LangChain: For managing the interaction between the chatbot and the vector database.
- Hugging Face Transformers: For embedding generation.
- Bootstrap: For responsive and modern UI design.
- jQuery: For handling AJAX requests and DOM manipulation.
-
Clone the Repository
git clone https://github.com/Rayyan9477/End-to-End-Medical-Chatbot-Gen-AI.git cd End-to-End-Medical-Chatbot-Gen-AI
-
Create a Conda Environment
conda create -n medibot python=3.12 -y conda activate medibot
-
Install Dependencies
pip install -r requirements.txt
-
Set Up Environment Variables
Replace the placeholder API keys in the
app.py
andstore_index.py
filesPINECONE_API_KEY=your_pinecone_api_key OPENAI_API_KEY=your_openai_api_key
-
Run the Application
python app.py
-
Access the Chatbot
Open your web browser and go to
http://localhost:8080
to start using the chatbot.
Replace the placeholder API keys in the app.py
file
PINECONE_API_KEY=your_pinecone_api_key
OPENAI_API_KEY=your_openai_api_key
- GitHub: Rayyan9477
- LinkedIn: Rayyan Ahmed
- Email: [email protected]