eliza icon indicating copy to clipboard operation
eliza copied to clipboard

New knowledge not being ingested into agent memory after first run

Open yoniebans opened this issue 1 year ago • 0 comments

Describe the bug

When adding a knowledge section in the character profile, these pieces of knowledge are taken and added to the agent memory. Once this is done, appending new knowledge to profile has no effect as the processCharacterKnowledge() method in /packages/core/src/runtime.ts breaks out of the knowledge adding loop as soon as it finds a piece of knowledge that already exists in memory.

To Reproduce

Add a knowledge section to your character, start the character up for the first time. Stop the agent, update the knowledge and restart the agent. Check db.sqlite and you will see that no new knowledge has been added.

Expected behavior

I would expect the agent should be able to absorb new knowledge that is added to the character file on each startup. There is potentially an argument for memories associated to knowledge that no longer exist in the character file should be removed but that is more subjective.

Screenshots

Screenshot 2024-11-26 at 2 44 37 PM

Additional context

N/A

yoniebans avatar Nov 26 '24 13:11 yoniebans