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

Having user with thousands of messages blocks the entire server after 2/3 messages and slow down agent reply #2425

Open
Sapessii opened this issue Feb 9, 2025 · 2 comments

Comments

@Sapessii
Copy link

Sapessii commented Feb 9, 2025

Describe the bug
As the title suggests, when a user with almost ~2k messages sends a message, after 2/3 agent replies the entire server is stuck, no error, no logs, nothing.
Neither the health endpoint can be reached.

Attached to this, a single reply for these users takes more than 1 minute (compared to the 10/15 seconds of a new user with no message history)

Please let me know if you need further details.

Letta Config
Letta 0.6.22

@mattzh72
Copy link
Collaborator

Hi! Sorry you are having this issue.

This is kind of hard to reproduce on our end - does this only happen at a specific number of messages?

@Sapessii
Copy link
Author

Hi @mattzh72, unfortunately we don’t have a clear answer on that.

It looks like the issue isn’t tied to the number of messages but rather to a high number of passages for the agent.

In fact, the error logs reference the agent_passages table. You might try adding several hundred entries to that table and see what happens.

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

2 participants