The Question and Answer System is a system that combines LangChain and Large Language Models, such as OpenAI's GPT-3, and uses React/TypeScript for the frontend and Python FastAPI for the backend. Qdrant is used to store embeddings and text documents for fast search.
- FastAPI Documentation
- React Documentation
- Typescript Documentation
- Qdrant Documentation
- LangChain Documentation
- Application Source Repository
- Clone the repository from GitHub using the following command:
git clone https://github.com/conect2ai/carbot-manual-compare.git
-
Create an account on Qdrant Cloud to get your
API_KEY
andHOST_URL
. -
Create an account on OpenAi API. ou will need OpenAI credits to run the application, and in general, new users get $5 credits to test the API. This is enough to run the application.
-
Create an API key in the OpenAI API. To do this, click on the
View API keys
option and create a new API key. Copy theOPENAI_API_KEY
value from the key that was created. -
Go to
/backend/app
and create a.env
file with the following structure, replacing<YOUR_KEY>
with your key:
QDRANT_HOST="<YOUR_KEY>"
QDRANT_API_KEY="<YOUR_KEY>"
OPENAI_API_KEY="<YOUR_KEY>"
- Still at
/backend/app
, create a virtual environment, and execute the following commands:
pip install -r requirements.txt
python main.py
- In other terminal, go to
/frontend
and execute the following commands to run the frontend:
npm install
npm start
With this, the application will run and can be accessed at localhost:3000