Share via

Storing context in OpenAI - Best practices

Sariga Rahul 146 Reputation points
2023-07-13T08:25:17.0233333+00:00

What is the best method to store context information in OpenAI for chatbots built using Azure OpenAI? As the chatbots are receiving numerous questions, the context value continues to increase. I am seeking guidance on the most effective way to store and manage context information.

Azure OpenAI in Foundry Models
0 comments No comments

Answer accepted by question author

  1. Rohit Mungi 49,131 Reputation points Microsoft Employee Moderator
    2023-07-13T13:45:36.6533333+00:00

    @Sariga Rahul I think the API is stateless and doesn't retain context. You can use this notebook to retain the context in a conversation and pass it each time.

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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