LangGraphJS Long Term Memory Store

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • 0
    • None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      https://docs.langchain.com/oss/javascript/langgraph/memory#long-term-memory 

      NOTE: this experience should include Voyage auto-embedding support for MongoDB Vector Store

      Use Case

      As a... LangGraph JS Developer I want... A persisted Store API to manage data across different conversation threads and sessions. So that... Agents can retain user facts, preferences, and learned instructions (Long-term Memory) without resetting context between interactions.

      User Experience

      Developers gain a unified interface (Store) to save/retrieve JSON documents via custom namespaces (not just Thread IDs). End-users experience agents that remember them over time.

      If bug: N/A

      Dependencies

      • Upstream: LangGraph State management, Embedding/Vector provider interfaces.
      • Downstream: Persistent storage adapters (Postgres, Redis, etc).

      Risks/Unknowns

      • Latency: "Hot path" memory updates (during generation) may slow down responses.
      • Context Overload: Retrieving too many memories via search may exceed LLM token limits.
      • Data Drift: JSON schemas for user profiles may become corrupted or bloated over time without strict validation.

      Acceptance Criteria

      Implementation Requirements

      • Implement BaseStore interface: get, put, delete, search.
      • Support hierarchical namespaces (e.g., [userId, "memories"]).
      • Support Semantic Search (vector similarity) and Metadata Filtering.

      Testing Requirements

      • Unit tests for CRUD operations on InMemoryStore.
      • Mocked tests for vector search/embedding generation.

      Documentation Requirements

      • API documentation for Store.
      • Examples for "Hot Path" vs "Background" memory updates.

      Follow Up Requirements

      • Implement backend-specific stores (Postgres, Redis).
      • Parity check with LangGraph Python BaseStore behavior.

            Assignee:
            Raschid Jimenez
            Reporter:
            Gaurab Aryal
            None
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: