Skip to content

Conversation

@wli51
Copy link
Collaborator

@wli51 wli51 commented Oct 21, 2025

Objective

The original implementation from the fork makes LM powered memory optimization mandatory upon addition and update. However, the current LM manager class has semi-broken prompting which occasionally causes non-compliance on the LM end, resulting in wrongly formatted outputs -> errors during that optimization process. This PR isolates the basic memory operations from the semi-broken LM optimization to get the memory class to minimal yet stable working status. Future PRs will replace the LM manager with DSPy backend (as the repo name suggests) and re-introduce the removed LM optimization functionality.

Adds:

  1. agentic_memory/memory_note.py: helper data class from the original fork, promoted to its own module and refactored with pydantic.BaseModel for organized type checking and factory methods.

Refactors:

  1. agentic_memory/memory_system.py: removed all LM components, applied some fixes to make the add/search/update work.
  2. tests/test_memory_system.py: moved from unittest to pytest and rewrote tests to test only the core memory functionality

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

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

Successfully merging this pull request may close these issues.

1 participant