microsoft / sample-app-aoai-chatGPT

Sample code for a simple web chat experience through Azure OpenAI, including Azure OpenAI On Your Data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CosmosDB not recording Feedback

gw37 opened this issue · comments

Describe the bug
The CosmosDB is not recording Feedback

To Reproduce
Steps to reproduce the behavior:

  1. using AOAI on your data with app deployed from OpenAI Studio, ENABLE_FEEDBACK = TRUE
  2. submit a question corresponding to documents in the search index
  3. Click the ThumbsUp/Thumbs Down icon
  4. Error, whether we indicate Positive or Negative, and Negative with a checkbox selected, the CosmosDB record shows Feedback as "" , an empty string

Expected behavior
In other deployments we see the feedback recorded as POSITIVE or with the negative reason selected e.g. "missing_citation"

Screenshots
Screenshot and log stream attached
Cosmos-Error-Screenshot 2024-04-17-173452
2024-04-18T001811.881624599Z --ERROR-re-feedback.zip

Configuration: Please provide the following

  • Azure OpenAI model name and version -- GPT4-turbo-0125-Preview
  • Is chat history enabled? --YES
  • Are you using data? If so, what data source? (e.g. Azure AI Search, Azure CosmosDB Mongo vCore, etc) AI Search w/ AZBlobStorage

Additional context
In the web application there are no on-screen error messages, all else is working, conversation history is recorded, but the saving of feedback is hitting error. Several users have tried to submit feedback on answers and get the same bad result.

i did an update of the code today (Apr.25) and the issue is now resolved. If anyone else encounters this its probably an anomaly in whatever version of the code you have, so try an update.