I am unable to maintain a session for a particular conversation.
I am trying to make a Q&A bot which reads the text on the current webpage and answer question to the user based on this text.
I am using completion api and it works well on the first request where I give the long text and the question. For the second question, I don’t want to give entire paragraph again but just the question.
How can I maintain the conversation session for this purpose or any other better way?
Hey @sajjadmanal ! This is a good question, one possible way of doing this is to use some of the summarization features to keep a high level context of the conversation present. Another way of doing so would be to use embeddings to keep track of the conversations, and that way if questions about the previous text come up, you will have that info embedded. I am working on some tutorials that will help with this but hopefully this gives some ideas in the meantime.