openai / chatgpt-retrieval-plugin

The ChatGPT Retrieval Plugin lets you easily find personal or work documents by asking questions in natural language.
MIT License
21.02k stars 3.69k forks source link

The server cannot start with the datastore for Azure CosmosDB vCore provider #405

Open adgrajales1 opened 8 months ago

adgrajales1 commented 8 months ago

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:

Result:

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'

ERROR: Application startup failed. Exiting.

Expected result:

### Tasks