Chat history issue in azure AI chatbot

Dezső Kántor 0 Reputation points
2024-09-26T07:19:31.0133333+00:00

I deployed a basic chatbot using Azure AI Studio. I clicked the option to save chat history, but every time I refresh the browser, the bot's answers disappear, and only the questions remain. What could cause this behavior? It's just a test bot, and I'm using the App Service free tier

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,291 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,925 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 35,091 Reputation points
    2024-09-26T11:14:37.7833333+00:00

    Dezső Kántor Greetings & Welcome to Microsoft Q&A forum!

    I deployed a basic chatbot using Azure AI Studio. I clicked the option to save chat history, but every time I refresh the browser, the bot's answers disappear, and only the questions remain. What could cause this behavior? It's just a test bot, and I'm using the App Service free tier

    I understand that you are testing the functionality and with every refresh history is removed.

    Since you are using free trial, there could be a possibility that this is not working. The free tier has certain limitations, including a limit on the amount of storage available for your app.

    Can you try deploying your webapp to basic or standard tier and see if that solves the issue?

    Are you able to see the chat history button?

    Also, add UI_SHOW_CHAT_HISTORY_BUTTON in the environmental variables to True in your app settings.

    Note that, chat history of your bot is stored in Azure Cosmos DB. When you deploy the web app, a Cosmos DB resource gets created which helps keep track of the conversation history. . Please ensure that the deployed web application has the correct Azure Cosmos DB account information under "App Settings". All connection information for Azure Cosmos DB and Azure Open AI is injected as environment variables in the Azure App Service instance at deployment time. See below for more details.

    User's image

    Please see the similar issue which has been addressed earlier.

    Also, see Deploy an Enterprise Chat web app for more information.

    Do let me know if that helps or have any other queries.

    If the response helped, please do click Accept Answer and Yes for was this answer helpful.

    Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.