Open anishgurjar opened 1 month ago
Would appreciate info how I could turn citations off until this is resolved. Couldn't find a simple answer in the docs to do so.
EDIT: I explicitly mentioned in system prompt to not generate citations and that seems to be the workaround for now.
It seems that the Teams AI team is handling this issue: https://github.com/microsoft/teams-ai/issues/2064
I have a problem integrating Azure OpenAI with Microsoft Teams through the Teams toolkit. The response generated by the API exceeds the character limit allowed in Teams, which causes constant errors when displaying the response in the chat. This is mainly due to the quote content field returned by Azure Search, which contains a large volume of data. Despite several attempts to format the output and adjust the index settings in Azure Search, the problem persists. As mentioned in other forums, this problem may be related to the 40 KB limit imposed by Microsoft Teams. I am asking for help in finding a solution to manage this limit without losing important information.
azureopenai:app:error [onTurnError] unhandled error: RestError: Error while parsing citation entity with id: 2. Detailed error message: The value of citation entity field 'citation.appearance.abstract' exceeds the length limit. The maximum length is '480' characters, but the provided length is '498' characters. +0ms azureopenai:app:error RestError: Error while parsing citation entity with id: 2. Detailed error message: The value of citation entity field 'citation.appearance.abstract' exceeds the length limit. The maximum length is '480' characters, but the provided length is '498' characters. azureopenai:app:error at handleErrorResponse (C:\Users\Nicolas Tennett\Downloads\AraucoBotv1\node_modules\@azure\core-http\src\policies\deserializationPolicy.ts:274:17) azureopenai:app:error at C:\Users\Nicolas Tennett\Downloads\AraucoBotv1\node_modules\@azure\core-http\src\policies\deserializationPolicy.ts:179:47 azureopenai:app:error at processTicksAndRejections (node:internal/process/task_queues:95:5) azureopenai:app:error at async ThrottlingRetryPolicy.sendRequest (C:\Users\Nicolas Tennett\Downloads\AraucoBotv1\node_modules\@azure\core-http\src\policies\throttlingRetryPolicy.ts:66:22) azureopenai:app:error at async ConnectorClient.sendOperationRequest (C:\Users\Nicolas Tennett\Downloads\AraucoBotv1\node_modules\@azure\core-http\src\serviceClient.ts:521:23) +1ms
Language Javascript/Typescript
Version latest
Description Hi, I have a bot that was working fine a few days ago. It is using Azure OpenAI Chat on your Data feature.
All of a sudden, I started getting this error:
RestError: Error while parsing citation entity with id: 1. Detailed error message: The value of citation entity field 'citation.appearance.abstract' exceeds the length limit. The maximum length is '480' characters, but the provided length is '500' characters.
I thought it was just me, until I also saw a post here: https://learn.microsoft.com/en-us/answers/questions/2083250/the-value-of-citation-entity-field-citation-appear
The only thing that has changed is I have been adding more documents in my blob storage, though not sure if it is related or not.
Reproduction Steps Create a prompt that is about a paragraph long and add it in role_information in the config.json file. Have about 15-20 documents in the storage over which RAG is happening. Run it in teams (not test tool).