examples/docker/qdrant/README.md
To set up the ChatGPT retrieval plugin with a single instance of a Qdrant vector database, follow these steps:
Set the following environment variables:
# Provide your own OpenAI API key in order to start.
export OPENAI_API_KEY="<your_OpenAI_API_key>"
# This is an example of a minimal token generated by https://jwt.io/
export BEARER_TOKEN="<your_bearer_token>"
Both Docker containers might be launched with docker-compose:
docker-compose up -d
Store an initial batch of documents by calling the /upsert endpoint:
curl -X POST \
-H "Content-type: application/json" \
-H "Authorization: Bearer $BEARER_TOKEN" \
--data-binary '@documents.json' \
"http://localhost:80/upsert"
You can query Qdrant to find relevant document chunks by calling the /query endpoint:
curl -X POST \
-H "Content-type: application/json" \
-H "Authorization: Bearer $BEARER_TOKEN" \
--data-binary '@queries.json' \
"http://localhost:80/query"