Location for code required to demo Open AI
- First set your configuration values in your environment, see code.
- At the root of your project, run pip install -r requirements.txt to install dependencies
- Run Create Vectors
- Run Create Index
- Now you will interact with SearchIndex.py as the entry point.
#References
https://github.com/openai/openai-cookbook/tree/main/examples/vector_databases/redis
#Docker
A Dockerfile was used intially to run Redis, now just use docker compose at the root directory.
docker-compose up -d //to bring Redis up
docker-compose down // to bring Redis down
#Todos
- Token calculation
- Feed prompt recursively
- Flush prompt as it approaches token limit
- Better Error handling, defensive programming