Skip to content

Feat: Memory Persistence #60

@rihp

Description

@rihp

Right now the agent forgets entirely about previous runs. Important information like my ethereum address, created files, and browsed websites is forgotten when the agent exits out.

This is a UX improvement that can substantially make the agent be more capable. The memory can be wiped when the agent run with the flag --wipe-memory

There are potential solutions for this some are easy to implement while others are more complex in nature and require an overhaul of some modules:

  1. Summary.md: Create a simple summary.md which is loaded on start up, this summary will be updated when the summarization function is called, or as the user interacts with the agent
  2. Use the workspace: Create a local file structure that can be used to store certain information and summaries.
  3. Data Lake: Create an unstructured database tasks system and memories which the agent can query on demand.
  4. Vector database: use a vectorstore to more efficiently generate document storage and retrieval. using something like https://github.com/chroma-core/chroma or Redis we could implement a longer memory persistence that deprecates the summarization logic
  5. Langchain Memory or inspirations: https://js.langchain.com/docs/modules/memory The langchain repository has the cutting edge integrations on memory and even offers a js agent that could be used in our implementation to improve the memory

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions