This repository contains code for an AI-powered chat application that allows users to upload PDF documents, perform queries, and receive responses based on the content of the uploaded documents.
Screen.Recording.2024-06-12.at.3.20.45.PM.mov
Follow these steps to set up and run the project:
-
Clone the Repository:
git clone https://github.com/mdimado/PaperChat.git cd PaperChat
-
Install Backend Dependencies:
cd backend pip install -r requirements.txt
-
Pull the Qdrant Docker Image
docker pull qdrant/qdrant
-
Run the Qdrant Docker Container:
docker run -d --name qdrant -p 6333:6333 qdrant/qdrant
-
Set Environment Variables: Create a .env file in the backend directory and add the following variables:
COHERE_API_KEY=your-cohere-api-key GROQ_API_KEY=your-groq-api-key
-
Run the Backend Server:
uvicorn main:app --reload
-
Install Frontend Dependencies:
cd ../frontend npm install
-
Run the Frontend Development Server:
npm start