When I execute with the Azure CosmosDB datastore provider, the server is not able to start as it's trying to create the provider without providing the num_lists and similarity params to the factory
INFO: Waiting for application startup.
ERROR: Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 671, in lifespan
async with self.lifespan_context(app):
File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 566, in __aenter__
await self._router.startup()
File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 648, in startup
await handler()
File "/code/./server/main.py", line 152, in startup
datastore = await get_datastore()
File "/code/./datastore/factory.py", line 42, in get_datastore
return await AzureCosmosDBDataStore.create()
TypeError: AzureCosmosDBDataStore.create() missing 2 required positional arguments: 'num_lists' and 'similarity'
Hello,
When I execute with the Azure CosmosDB datastore provider, the server is not able to start as it's trying to create the provider without providing the num_lists and similarity params to the factory
Steps to reproduce:
docker build -t chatgpt-retrieval-plugin .
docker run -it --env DATASTORE=azurecosmosdb --env BEARER_TOKEN="<some_token>" --env OPEN_API_KEY="<some_api_key>" --env AZCOSMOS_API=mongo-vcore --env AZCOSMOS_CONNSTR="<some_connection_string>" --env AZCOSMOS_DATABASE_NAME=<some_database> --env AZCOSMOS_CONTAINER_NAME=<some_collection> chatgpt-retrieval-plugin
Result:
ERROR: Application startup failed. Exiting.
Expected result: