Integrates TUB data with ChatGPT.
The flow is as follows:
- Generate embeddings of chunks of TUB data using SBERT.
- Upload embeddings to Pinecone for storage and retrieval.
- Leverage Pinecone to match of user queries with embeddings.
- Employ the resultant matches as prompts for ChatGPT's dynamic interactions.
- Requires a config.py file in the tub_bot folder that contains API keys for Pinecone and OpenAI.
- Install dependecies with poetry
poetry install
- Will need to upload some test data to Pinecone. See the comment in
pinecone_service.py
. Then runpoetry run python tub_bot/pinecone_service.py
- Run the application with
poetry run python tub_bot/main.py
There are no tests