How can I find out that a conversation is likely to have ended in langchain
I’m working on a ChatBot with Python and langchain, and I’d like to have a metric that I could use to understand how close we are to the completion of a discussion.
How can I swap an instance of ChatMessageHistory with an instance of ConversationBufferWindowMemory? Python, Langchain
I implemented this use case from langchain to add chat history to my RAG to contextualize questions that may be incomplete. Everything works fine but now I would like to use only the last x messages instead of the whole chat history. How can I do that?