conda create -n gpt-orch python=3.11conda activate gpt-orchThere are two options, using pip or poetry:
- For the long term project, it is preferable to use poetry, it is lock your dependencies to lower the chances you have dependencies conflict
- But, if project needs to be done short in time use pip instead.
Click in the link, to install Poetry: https://python-poetry.org/docs/
pip install -r requirements.txtpoetry install- Set up Additional resource.
- PostgresDB with vector extensions for vectorstore
- Redis for History Chat Engine
- Set up your FAQ list in PG DB.
- Checkout Databank_Ingestion/Databank-create.ipynb.
- Store the data that want to be ingested in FAQ_Data.
- Set up Open AI key and additional resource in .env files.
- change the env file to .env.
- Fill out all the necessary path and openai key.
- Run FastAPI locally.
make run
List of available endpoints
| API Service | Method | Full Path |
|---|---|---|
| GPT Completions | POST |
{Endpoint}:8080/conversation |
| Delete History | POST |
{Endpoint}:8080/clear-history |