Replies: 1 comment
-
|
An update: After happening upon PR #472 (thank you @efenex !) I tried setting But those And then the values took effect. I'm not sure why those two settings were being ignored otherwise. And then after that I tried re-summarizing the two large sessions. It worked. Then I ran a consolidation and that worked too. (I can't vouch for the results, but what I mean is it ran to completion this time.) So that would appear to take care of my second issue. (Although now I see that there's a script I could have run so perhaps I try that for completeness sake?) And yes async handling of all this to work around the 180s iii timeout would be great; separate concern tho. As for my first issue... still wondering if I handled that well enough, or if there's a more sensible approach. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Scenario:
Perhaps related/tangential to discussion thread #633, I'm tire-kicking agentmemory (v0.9.27) for a prose-heavy workflow. I write technical courseware (AsciiDoc), respond to reviewer comments inline in source files or via GitHub (reviewer's preference), perform various quality checks along the way (using Vale and other rules, alongside curated Claude skills), and write a bit of Python (using documented, bespoke helper libraries) to set up, grade, and tear down our various lab exercises.
What I've got:
There are two issues I'm wrestling with. Thoughts and ideas welcomed:
Pre-agentmemory, I've been curating and maintaining a bunch of markdown files containing plenty of insight, guidance, and lessons learned. Things like style rules, peer/editor review patterns, course conventions, team agreements, procedures, references to documentation, and so on. And so it's not raw session history.
MEMORY.md, in turn, points to all those files using topic keywords and links. Claude will only evergrep MEMORY.md, of course, so when retrieval works well, I get by, though it feels a bit bootstrappy. (And when it doesn't work well, um... you already know what happens, that's why we're all here, right?)So this info is super important, and it's not JSONL transcripts from existing sessions. How can I reliably ingest/rehydrate/summarize/etc. these files in to agentmemory and have them turned into something usable and useful?
Using
/rememberon each file (one big blob!) doesn't seem like a good idea at first glance. I've also tried using Claude to pre-digest the files and create manifests, which I then run through a li'l python script to slurp it all in. I'm not sure if that was a comprehensive approach either, but I figured it was worth a try.I tried importing/summarizing all my session transcripts. (Side note: I bumped up
cleanupPeriodDaysin mysettings.jsonfor now.) All but two appear to have been summarized successfully, and the remaining (largest) sessions fail.For the ~6,600 observation session:
[agentmemory] warn Summary validation failed {"sessionId":"...","errors":["narrative: Too small: expected string to have >=20 characters"]}. For the ~25,000 observation one (62 chunks): The worker appears to crash and reconnect during chunk handling, then I see{"error":"Invocation stopped"}.I've tried mitigating by halving
SUMMARIZE_CHUNK_SIZEto200andSUMMARIZE_CHUNK_CONCURRENCYto3, and running it asNODE_OPTIONS="--max-old-space-size=16384" npx @agentmemory/agentmemory. (I've since reverted theSUMMARIZEchanges.)Of course those two remaining sessions also have the most valuable domain-specific work outside of my supplementary memory files. Is there another approach I ought to be taking to summarize these?
And thanks again for building this, @rohitg00 and team. Something about the overarching architecture is resonating with me, and the design comes across to me as very intentional and extra thoughtful. Curious to follow along as it evolves.
Beta Was this translation helpful? Give feedback.
All reactions