agentmemory icon indicating copy to clipboard operation
agentmemory copied to clipboard

Viewer graph does not settle with >1000 nodes

Open Rex57 opened this issue 6 months ago • 2 comments

Problem

When the AgentMemory viewer graph has more than ~1000 nodes, the graph layout keeps bouncing/oscillating and does not settle into a usable stable view.

User impact

The graph page becomes hard to inspect because nodes continue moving around instead of stabilizing. This makes the viewer feel broken for larger memory graphs, not just less polished.

Expected behavior

Dense graphs should cool down or cap velocity over time so the layout becomes inspectable.

Observed behavior

With a large graph (>1000 nodes), nodes keep bouncing around and the layout does not settle.

Related PR

PR #513 attempted a fix by adding a node-count-aware velocity cap with tick decay: https://github.com/rohitg00/agentmemory/pull/513

Rex57 avatar May 20 '26 11:05 Rex57

Hit this hard with ~75,000 nodes / ~6,000 edges. The viewer never renders the graph at all — Graph tab shows "No graph data yet. Set GRAPH_EXTRACTION_ENABLED=true..." even though stats sidebar correctly shows the totals.

Empty payload ({}) to /agentmemory/graph/query returns 500 Invocation stopped at this scale. Search-driven exploration via {"query":"..."} does work and returns relevant subgraphs (we got back 1,758 nodes for a single query term), so the function itself is fine — it's the full-load default that fails.

Suggestion in addition to PR #513: default the graph view to a sane filter on first load (top-N by degree, or empty until user searches) rather than attempting the full graph at 75K+ nodes. Current "No graph data" message is misleading when data IS there.

allandelmare avatar May 24 '26 18:05 allandelmare

Fixed in v0.9.22 — https://github.com/rohitg00/agentmemory/releases/tag/v0.9.22. Thanks for the report.

rohitg00 avatar May 26 '26 09:05 rohitg00