Azure OpenAI Chat with History

Azure OpenAI Chat with History

Introduction to Azure OpenAI Chat with History recipe

Introduction to Azure OpenAI Chat with History recipe

The Azure OpenAI Chat with History recipe is initiated using an HTTP request. You can maintain the chat history in a file and use it as context for the next user query and the Large Language Model's (LLM) response.
The process maintains chat history in a file and uses it as context for the last user question and LLM answer. It reads input parameters to check if the file exists, retrieves the last user question and LLM answer, prepares a request, and sends it. If the file doesn't exist, it creates one and writes the user input and LLM answer to it.
You can use the following file formats:
.txt
,
.xml
,
.json
,
.html
,
.csv
,
.md
, and
.yaml

0 COMMENTS

We’d like to hear from you!