# in chatgpt-retrieval-plugin/examples/docker/redis
docker-compose up -d
# back to chatgpt-retrieval-plugin
# DATASTORE="redis"
# BEARER_TOKEN and API token are in env also
poetry run start
# in other shell
# upsert the read me of chatgpt-retrieval-plugin
curl \
-H "Authorization: Bearer {token}" \
-X POST \
-F 'file=@README.md;type=text/markdown' \
http://0.0.0.0:8000/upsert-file
# return 200 and the document id
curl -H "Authorization: Bearer {token}"\
-H "Content-Type: application/json"\
-X POST \
-d '{"queries": [{"query": "start up"}]}' http://0.0.0.0:8000/query
# return empty results.
# and in terminal that poetry is running, it give a log "Failed to query, error: 'MilvusDataStore' object has no attribute 'col'"
To reproduce: