pranayroni / azure-search-openai-demo-csharp

documentbot in .net
MIT License
0 stars 1 forks source link

Chat Service #107

Open pranayroni opened 1 month ago

pranayroni commented 1 month ago

Will progress #100

pranayroni commented 1 month ago

Chat Service will first ask User Service to retrieve this User's ChatInstances from Azure AI Search DB.

User Service will return an empty or non-empty list of instances: Chat Service loads this into Chat Instances locally.

Any time Chat Service is asked to make a change to it's local chat instance(s), Chat Service must send the updated local chat instance(s) to User Service so it can be updated on Azure AI Search.

this is the basic flow of maintaining user preferences' chat instances

pranayroni commented 1 month ago

Chat Service will first ask User Service to retrieve this User's ChatInstances from Azure AI Search DB.

User Service will return an empty or non-empty list of instances: Chat Service loads this into Chat Instances locally.

Any time Chat Service is asked to make a change to it's local chat instance(s), Chat Service must send the updated local chat instance(s) to User Service so it can be updated on Azure AI Search.

this is the basic flow of maintaining user preferences' chat instances

in the future when #106 is completed, we will also allow User Service to be subscribed to alerts from Azure AI Search. IF a change is made on azure ai search, websocket will send out alerts to only specific user(s) that was changed. User Service gets the alert and asks Chat Service to update.

Some notes about this: This will require websocket but also make sure that every query is handled by a minimalapi of ours and that the minimalapi is the one delivering this alert to clientapp(s). Currently, ClientApp apiClient is making these requests on its own. This should be refactored later.