microsoft / sample-app-aoai-chatGPT

Sample code for a simple web chat experience through Azure OpenAI, including Azure OpenAI On Your Data.
MIT License
1.45k stars 2.16k forks source link

CosmosDB not recording Feedback #793

Closed gw37 closed 2 months ago

gw37 commented 2 months ago

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

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.

gw37 commented 2 months ago

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.