How to get the content recommendation based on the user chat history in a AOAI chat webapp

TagnaviMY-1268 30 Reputation points
2024-04-01T06:01:19.51+00:00

We have a AOAI chat webapp, using azure open ai service and azure cognitive search, please suggest a way to provide content recomendation to the user based on his/her chat history in the current session.

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
751 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,271 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 16,596 Reputation points
    2024-04-04T18:44:36.62+00:00

    Hi @TagnaviMY-1268 to provide content recommendations based on the user’s chat history in an Azure OpenAI (AOAI) chat webapp, you can leverage a combination of Azure Cognitive Search, Azure Cosmos DB, and Azure Machine Learning. Here’s a high-level approach:

    1. You can enable chat history in your AOAI chat webapp. This feature provides your users with access to their previous queries and responses, allowing them to easily reference past conversations. You can store this chat history in Azure Cosmos DB
    2. Analyzing past interactions provides valuable insights into user behavior, preferences, and recurring issues. Armed with this data, you can make informed decisions to optimize user experiences, tailor content, and refine your application’s performance
    3. Azure Cognitive Search can be used to index the chat history stored in Azure Cosmos DB. You can create a scoring profile in your index schema and assign weights to the fields you want to prioritize Use the scoring profile in your search queries to show suggested content in response.
    4. You can use Azure Machine Learning to train a recommendation model based on the user’s chat history. This model can predict the probability that a user will be interested in an item.
    5. Once the model is trained, you can deploy it as an API using Azure Machine Learning3. This API can then be used to provide real-time content recommendations to the user based on their chat history.
    0 comments No comments