Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve chat history handling #64

Open
drivian opened this issue Aug 16, 2024 · 0 comments
Open

Improve chat history handling #64

drivian opened this issue Aug 16, 2024 · 0 comments
Assignees

Comments

@drivian
Copy link
Collaborator

drivian commented Aug 16, 2024

Chat history is silently truncated when going over max_token_limit, as we are using the LangChain class ConversationTokenBufferMemory for the chat_history object. The default max_token_limit in agent.yml is currently set to 4k, which is easily too little with current LLMs. Propose to:

  • Increase the limit to say 20k, and change default llm to gpt-4o
  • Add a logger if the limit is exceeded (maybe LangChain support this now?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants