dotneet / smart-chatbot-ui

An open source ChatGPT UI.
https://smart-chatbot-ui.vercel.app/
MIT License
475 stars 98 forks source link

[bugfix] Support for Default Indexing Policy via indexes #153

Closed wallter closed 1 year ago

wallter commented 1 year ago

When leveraging MongoDB with a Default Indexing Policy enabled (such as Azure/CosmosDB) the configuration requires any sort() fields to have a corresponding index. Without indexes, all database calls (with the exception of default _id indexes) fail. These failures result in 500 errors for the prompts sidebar and a complete loss in prompt functionality.

This PR adds initialization for the database to create the indexes.

vercel[bot] commented 1 year ago

Someone is attempting to deploy a commit to a Personal Account owned by @dotneet on Vercel.

@dotneet first needs to authorize it.