Chat4PCOS is a chatbot application designed to assist patiens with questions related to Polycystic Ovary Syndrome (PCOS). It integrates data from a Neo4j graph database with a Hugging Face model to provide accurate and contextually relevant responses.
- Python 3.8 or higher
- Node.js and npm
- Neo4j database
-
Clone the repository:
git clone https://github.com/arij01/Chat4PCOS.git cd Chat4PCOS
-
Create a virtual environment and activate it:
python -m venv venv source venv\Scripts\activate
-
Install the required Python packages:
pip install -r requirements.txt
-
Set up the Neo4j database:
- Start your Neo4j database.
- Load the data from script.cypher and relationships_queries.cypher localted in the data folder into the Neo4j database.
-
Run the FastAPI server:
python api.py
-
Navigate to the frontend directory:
cd frontend
-
Install the required npm packages:
npm install
-
Start the React development server:
npm start
- Open your browser and navigate to
http://localhost:3000
to interact with the Chat4PCOS application.
- The backend server runs on
http://127.0.0.1:8000
. - The frontend React application runs on
http://localhost:3000
. - Ensure that the Neo4j database is running and accessible at
bolt://localhost:7687
.