The user can ask any health realted question to the chatbot. The user may upload pdf's of his helath report to ask questions based on them as well. Please pass only 1 pdf per session and if the first question is not answered proprly please try again before closing the application.
avatarimproved.1.mp4
-
Clone the Repository:
git clone https://github.com/vikassrini/Chatbot.git cd Chatbot
-
Set Up a Virtual Environment (Optional but Recommended):
# For macOS and Linux: python3 -m venv venv # For Windows: python -m venv venv
-
Activate the Virtual Environment:
# For macOS and Linux: source venv/bin/activate # For Windows: .\venv\Scripts\activate
-
Install Required Dependencies:
pip install -r requirements.txt
-
Set up the Environment Variables:
Create .toml file
touch keys.toml
You can get your OpenAI API key from here - Link to get OpenAI API key
# add the following API key [api_keys] service_1_key =
-
Setup MongoDB:(optional) Download MongoDB from here Connect to the database using the connection string.
-
Setup Weaviate: Run a local instance of Weavitate: Install docker on your machine , do this following this Installation Guide.
Run the following command to start weavite
docker compose up
-
Run the application using the command:
uvicorn chatapp:app --reload