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

Memory problem of the bot #80

Open
lydacious opened this issue Sep 4, 2023 · 2 comments
Open

Memory problem of the bot #80

lydacious opened this issue Sep 4, 2023 · 2 comments

Comments

@lydacious
Copy link

Hello, so I am using a unique session ID and I am using PostgreSQL for memory. The thing is I don't see how I should set it up so that the bot uses the chat_history for context. For example, I will ask the bot to call me Lydacious and in my next message it will say "Unfortunately, I couldn't find any information about what you asked me to call you earlier.". I don't know if it is relative but in my prompt, I've made sure so the bot never comes up with new answers, only takes them from the doc chunks that have been provided.

@codingjaguar
Copy link
Collaborator

Akcio automatically includes chat history up to a pre-set limit. The problem might be due to your change on the prompt. Can you test whether it works as intended with the out-of-box prompt? If so, the problem is likely in the change on the prompt.

@lydacious
Copy link
Author

Akcio automatically includes chat history up to a pre-set limit. The problem might be due to your change on the prompt. Can you test whether it works as intended with the out-of-box prompt? If so, the problem is likely in the change on the prompt.

Do you know in which line or file it gets included? I have tried it with default prompt as well but it was the same. Also, I have created a telegram bot that uses the API to talk to Akcio. Basically, the users talk to Akcio via a telegram bot. I don't know if that is relevant though.

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