Repository navigation
Should Rig support composable multi-layer agent memory? #2406
Parikalp-Bhardwaj
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Rig currently has
ConversationMemoryfor managing ordered conversation history, along with memory policies such as compaction and demotion.There is also ongoing work around durable conversation-memory backends and session/event persistence.
I wanted to discuss a slightly different problem:
For production agents, memory often serves different purposes:
These have different retrieval and storage semantics.
A possible flow could look like:
I don't think
ConversationMemoryitself should necessarily grow to handle all of these cases.Instead, could a higher-level composable abstraction make sense?
For example, conceptually:
With implementations such as:
Then an application could compose them:
The distinction I have in mind is:
This could potentially reuse Rig's existing vector-store abstractions for semantic memory rather than introducing another storage system.
Some questions I'd be interested in hearing opinions on:
MemorySourceabstraction be useful, or would it make Rig too opinionated?ConversationMemory, compaction, and future session/event persistence?I'm not proposing replacing or expanding
ConversationMemoryinto a catch-all memory abstraction.I'm mainly interested in whether a small composition primitive could be useful for applications that need multiple memory strategies while keeping storage and retrieval implementations independent.
Would this fit Rig's design philosophy, or is this better kept entirely outside the core library?
All reactions