How to link related concepts automatically in an AI assistant's context storage?
TL;DR
- Automatic linking happens in five places. The store's model links on the write, the assistant writes the link with a tool or a file, a separate pass links what is stored, a person accepts a suggestion, or search finds related material at read time without a stored link.
- Not at once. A write can be accepted before its links exist: Mem0 answers
PENDINGwith an event to poll, Supermemory saysstatus: "done"alone does not mean memories are ready and names a separatedreamingStatus, and Zep returns a task even for a manually added node.- Settings steer, they do not guarantee. Where a store lets you declare types, an ontology or instructions, they steer what the extractor looks for; Neo4j Agent Memory says its schemas are no "guarantee of extraction accuracy". Mem0's platform graph is always on.
- Where the docs name failure modes, they are pipeline-specific. Neo4j Agent Memory's local extractor loses relations on long input without a warning, Graphiti flags JSON errors from very small models, and Cognee splits one thing under several names into several nodes.
You want the assistant's memory to connect related ideas without anyone tagging them. Stores do it in different places, at different times, and with different ways to undo a mistake.
Sorting automatic linking by where the link is made, in the store's write pipeline, by the assistant itself, in a separate pass, by a person on a suggestion, or not stored at all, is this page's framing; every behaviour is quoted or paraphrased from the vendor's documentation or a practitioner's own words.
A link, on this page, is a stored connection between two concepts or records: an edge in a graph or a link in a note. It is not entity linking, which decides what a mention in a text refers to.
The table describes documentation read on 24 November 2026, not behaviour we tested. The letters are the five places explained in the next section.
| System | Where in the pipeline the link is made | When it exists after a write | What you configure | How to fix a wrong link | Status on the read date |
|---|---|---|---|---|---|
| Zep | (a) "The model finds relationships between those entities and the facts that describe them." | "After Zep accepts the episode, each major step below uses a language model". A manually added node waits for an asynchronous task. | Entity and edge types, their number set per plan; custom instructions, "Available to Flex Plus and Enterprise customers." | Update an edge by UUID or delete it; the nodes stay. | Documented in Zep's help. |
| Mem0 | (a) Per its graph page, relationships are untyped and inferred from entities that co-occur in memories (see the graph comparison). | "Expect a status: "PENDING" response with an event_id." (add) | On the platform, the graph "is always on"; custom instructions. | relations "is always an empty list"; the update operation will "fix or enrich an existing memory". Recomputing connections: not described on the pages read. | Documented platform feature. |
| Cognee | (a) extraction with a custom prompt; (c) cross-connect "Proposes new edges between Entity nodes that look related but are not yet connected". | When the pass runs. | Ontology, prompt, minimum confidence, a cap on new edges per entity, dry_run. | Inferred links are marked and "start with a low weight". Removing one edge: not described on the pages read. | memify() deprecated, improve() named instead; cross-connect is SDK-only and "runs against the default dataset." |
| Supermemory | (c) "Memories (the graph's facts, updates and derived facts) come from a second phase called dreaming." | When dreamingStatus is done (document operations). | dynamic or instant dreaming. | Approve, decline or undo low-confidence inferred memories (review); "Forget extracted memories exactly or by meaning" (operations). | Documented API. |
| Hindsight | (a) "Hindsight creates a knowledge graph with four types of connections", described on its retain page; the same entity named differently "gets unified through fuzzy name matching". | Described as part of retain; only observation consolidation is stated to run in the background afterwards. | Entity labels (entity_labels in the bank config), which "automatically link related memories in the knowledge graph"; a setting makes entity matching stricter. | not described on the pages read | Vectorize's developer documentation. |
| Neo4j Agent Memory | (a) For its local extractor: "Relations are decoded only when the ontology declares relationship types." | not described on the pages read | Ontology for the local extractor; resolution thresholds. | A pending SAME_AS edge marks a possible duplicate entity for review ("Bolt capabilities"). Repairing a relation between two concepts: not described on the pages read. | "an experimental, community-supported Neo4j Labs project" (status); the resolution page describes a 0.7.0 change. |
| LlamaIndex | (a) At indexing: "Will extract paths (including entity types!) according to optional list of allowed entity types and relation types." | At indexing; a separate readiness signal is not described on the pages read. | Allowed entity and relation types. | not described on the pages read | Property Graph Index guide. |
| Reference MCP memory server | (b) The model calls create_relations; per its README and source, the server makes no model call of its own. | When the tool call returns; it "Skips duplicate relations". | The prompt; each relation's from, to and relationType. | delete_relations, "keeping the entities they connect". | Reference implementation. |
| Basic Memory | (b) "When you ask your AI assistant to write a note, it creates observations and relations automatically." | With the note; "Relations can link to notes that don't exist yet." (format) | A schema checks that notes of a type contain the relations you expect. | Edit the relation line in the note. | Documented note format. |
| Obsidian and Smart Connections | (d) A click on an unlinked mention, or dragging a related note into a note, creates the link. | When the person clicks or drags. Obsidian also updates links on rename and, with the Daily notes plugin on and a date property present, attempts a daily-note link. | The rename setting; the Daily notes plugin. | Edit the link in the note. | Obsidian Help; community plugin README. |
| LangMem | (a) A prompted model extracts memories; the "memory schema shapes memory extraction". | not described on the pages read | The memory schema. | The model can "update old ones, and (if configured) delete old ones." | Documented guide. |
| Mnemoverse (publisher) | (b) The caller names the concepts: concepts, "concepts stored together are linked in the concept-association graph"; in the MCP write tool, "Key concepts for linking memories" (MCP). | For a write: not described on the pages read. For a rating, coactivation_edges is "0 while the update is applied in the background". | concepts on the write; include_associations on the read: "Expand via concept associations (default: true)". | Rating: "The rating moves each memory's valence and the association links between its concepts; the stored text does not change." "Deleting an atom removes only that atom's row: it does not touch the tenant's learned concept associations." Deleting or editing one link: not described on the pages read. To inspect: the MCP tool memory_graph will "Read the association links around given concepts: which concepts your memory has linked, with each link's weight, valence and count; read-only" (since package 0.13.0, changelog). | Public API reference and MCP tool list. |
Five places a link gets made
The five places and their order are this page's own sorting, not a taxonomy any vendor claims.
(a) The store's write pipeline. The store records connections as it processes what you write, in most systems here by running a model over it: Zep, Mem0, Cognee's extraction, Hindsight, LlamaIndex, LangMem and Neo4j Agent Memory in the table. The research system A-MEM describes the same pattern: its memory system "analyzes historical memories to identify relevant connections, establishing links where meaningful similarities exist", and its README says "This happens automatically when adding or updating memories!" How such edges are built is covered in the comparison of six agent memory graphs.
(b) The assistant writes the link. A tool or a file format gives the assistant a way to record a connection, and the prompt decides whether it does. A tool call makes responsibility explicit: the link exists because the assistant chose to write it.
(c) A separate pass over what is stored. Cognee's cross-connect "pairs up candidate entities, asks the LLM to name the relationship between each pair, and writes the confident ones back as edges". Supermemory advises dynamic dreaming "because batching lets new memories connect to related ones." A separate pass makes timing and review part of the design.
(d) A person accepts a suggestion. Obsidian's unlinked mentions "helps you discover links you aren't aware of yet"; Smart Connections surfaces "notes that are semantically related to what you are working on right now", and "Drag a result into a note to create a link."
(e) Search finds related material without requiring a stored link. Context Link "finds relevant content by meaning, not keywords". A search result is returned for one query; a link records a connection you can inspect and edit later. The price of building a graph instead is covered in the GraphRAG tax.
When a link exists after a write
A successful write and a usable connection are separate milestones. That is this page's conclusion from the documentation below, not a timing figure for any system.
Mem0 queues the request ("The request is queued for background processing"), says to "Poll GET /v1/event/{event_id}/ to confirm completion" (add operation), and reports SUCCEEDED or FAILED "once processing completes" (API reference). Supermemory says "Memory extraction may continue after status: "done"", and its document operations page, read on 24 November 2026, explains why: "With the default dreaming: "dynamic", Supermemory batches related documents before forming memories, so status can be done minutes before dreamingStatus is." Its instant mode is for the case where "the very next step is a memory search or profile that must already reflect this document".
Zep's task sentence is about a node you add by hand: it "is not available to read or search until the asynchronous task succeeds." For edges its model extracts, the pages read say the processing runs after the episode is accepted; a separate readiness signal is not described on the pages read. Hindsight's "your retain() call returns immediately while consolidation runs in the background" concerns observations, while its retain page describes the four kinds of connections as part of retain. Neither sentence is a readiness signal for every link.
The comparison of six graphs places these links on the write path, and this page does not dispute that; the vendor pages quoted here add that the write call can return before that path has finished. Supermemory makes its links in a later phase. Basic Memory shows the reverse order: a relation can name a note nobody has written yet, and "When those notes are created later, the connections are already in place."
What you configure to keep links right
This list of settings is this page's conclusion from the documentation; no vendor publishes it as a contract. The settings steer a process, and Neo4j Agent Memory states the limit plainly: "Domain schemas are neither database constraints nor a guarantee of extraction accuracy." The same settings also decide what gets stored at all, the side covered in the write gate.
- Types and ontology, before ingestion. Zep: "Ontologies affect only data processed after they are set; existing data is not re-extracted automatically." In Graphiti, "The edge_type_map parameter defines which edge types can exist between specific entity type pairs". Cognee's ontology "acts as a reference vocabulary".
- Instructions. Zep's extraction "uses general-purpose logic by default" until custom instructions change it. Mem0's let you "define exactly what Mem0 should include or exclude when creating memories from conversations." Cognee's custom prompt "constrains node types, enforces relationship naming, and reduces noise."
- Explicit entries next to automatic ones. Zep adds a relationship with its source and target nodes through
graph.edge.add, with a caveat: "When deduplicate is false (the default), Zep does not compare the request with the graph." - Thresholds and a preview. Cognee keeps a proposed edge only above a "Minimum LLM confidence" and caps new edges per entity. Its preview saves less than the name suggests: "dry_run=True saves the graph writes, not the token cost."
- Review. Supermemory's queue of inferred memories is walked through in how to stop an agent repeating a fixed mistake.
Where automatic linking goes wrong
Name the pipeline before generalising about failure.
Long input. Neo4j Agent Memory documents for its local GLiNER2.5 extractor: "Long input loses relations without a warning." Long input is split into windows, and "A relation whose endpoints fall in different windows cannot be decoded, and a windowed extraction never reports feasible=False." The same page says "end-to-end zero-shot relation extraction is weak for every model in this class", the class of local models it compares. This is a warning about that extractor, not about every graph pipeline.
Small models. The Graphiti README: "Very small models frequently emit JSON that doesn't match the requested schema, which surfaces as extraction failures."
One thing, several names. Cognee: "When the same real-world thing is extracted under several names (New York City and NYC), it becomes several Entity nodes and its edges are split across all of them". That is entity identity, a separate problem from linking two different concepts. Neo4j's pending SAME_AS edge belongs to it: it marks a possible duplicate so "a reviewer can examine the pair without blocking ingestion", and its manual review methods are "Bolt capabilities" of that experimental project.
Practitioners' own builds. eyanpen wrote on 24 April 2026 that "When the LLM reads a minimal text segment, even with explicit type constraints, it still assigns different types to the same entity." hannune, who builds an entity-resolution API, wrote on 30 September 2026: "I treat entity quality as something that degrades continuously now, not a state you establish once." Both describe their own builds.
How much links help. In the vendor's own LOCOMO measurement with an LLM judge, Mem0's paper reports: "Mem0 with graph memory achieves around 2% higher overall score than the base configuration." Separately, kingsleyonoh, describing their own retrieval pipeline on 30 March 2026, wrote: "The graph signal helped occasionally but never moved the needle by more than a few points on its own." These are different evaluations; neither sets a general expected gain.
Links the assistant writes itself
In the reference MCP memory server, the README's sample prompt tells the model to "Connect them to the current entities using relations", and adds that "Changing the prompt will help the model determine the frequency and types of memories created." Per its README and source, the server stores what the model sends through create_relations and makes no model call of its own. For a wrong link: "To remove a link between two entities and keep both, use delete_relations", and a relation goes only when from, to and relationType all match a stored one exactly. Graph memory MCP tools compares the tool sets more broadly.
Basic Memory keeps the link in the file the assistant writes, as a line such as - implements [[API Security Requirements]], which a person can read and edit. One caveat, from its observations and relations page: "Deleting a note doesn't erase the relations that pointed at it." Letta's MemFS is a file route too: "a real checkout the agent reads and edits with ordinary file tools."
Andrej Karpathy's LLM Wiki is an idea, not a product: "the LLM incrementally builds and maintains a persistent wiki", though "Personally I prefer to ingest sources one at a time and stay involved". On Hacker News, vbarsoum, who built their own version, reported on 6 April 2026 that "The naive version (each book as 1 file) produced exactly the slop people are describing here", and "But splitting into chapter-level files and recompiling changed the output categorically."
Do not confuse a suggestion with an accepted link. Obsidian documents two cases where it links on its own: "When you rename a file, Obsidian automatically updates all the links to that file" (manage notes), and with the Daily notes plugin on and a date property present, "Obsidian will automatically attempt to generate a link to the daily note for that specific day." Unlinked mentions stay a person's choice.
What this page does not claim
No test of any product's linking and no experiment. The five places, the point that a link may not exist right after a write, and the list of settings are this page's framing and conclusions from the quoted documentation. Neo4j Agent Memory is an experimental Neo4j Labs project, and Cognee has deprecated memify() and points to improve(); the behaviours are the vendors' documented ones on the date in Sources. Where a vendor's pages say nothing, the table says "not described on the pages read"; that is not a claim the product lacks it. Forum and comment replies are practitioners' words with their dates.
Common questions
How to link related concepts automatically in an AI assistant's context storage?
Decide where the link should be made: by the store's model when you write, by the assistant through a tool or a file, by a separate pass over what is already stored, or by a person accepting a suggestion. Search by meaning is a fifth option, which need not store a link at all. Then check two things for the system you pick: how it tells you a link exists, and how it lets you remove a wrong one.
If I'm searching by meaning instead of following links, why bother with [[wiki links]]?
They answer different questions. Search by meaning finds nearby text at read time and need not store any connection; a link stays in the note, where a person or an assistant can follow it, inspect it and edit it. zaferdace, who asked this on dev.to on 17 April 2026, answered it in the next paragraph: "Turns out, they serve different purposes".
Does an AI assistant link notes by itself?
When the store gives it a tool or a file format and the prompt asks for links, yes. The reference MCP memory server stores a relation when the model calls create_relations, and its sample prompt tells the model to connect new entities using relations; Basic Memory writes relations when the assistant writes a note; in the LLM Wiki pattern the model maintains the links. Obsidian shows unlinked mentions for a person to accept, and links on its own in narrow documented cases, such as renaming a file.
Why is a new memory not linked right after I write it?
Because in several stores the links are built after the write call returns, and the pages read document signals for some of it: Mem0 gives an event to poll, Supermemory a separate dreamingStatus that can trail the document status, and Zep a task for a manually added node. Hindsight describes its connections as part of retain and states that observations are consolidated in the background afterwards. That a write can come back before its links exist is this page's conclusion from those pages, not a rule for every store.
How do I fix a wrong link between two concepts in agent memory?
Fix it where it was made. The reference MCP memory server removes one relation and keeps both entities with delete_relations. Zep updates an edge by UUID or deletes it, and deleting an edge keeps its nodes. Supermemory lists low-confidence inferred memories to approve, decline or undo, and forgets extracted memories exactly or by meaning. Mem0 returns relations as an always empty list, and its update operation fixes the memory itself; whether connections are then recomputed, its pages do not say. In notes, the link is a line in the file.
Sources
All read on 24 November 2026.
Memory stores and graph pipelines
- Zep: how graph creation works, customizing graph structure, custom instructions, adding fact triplets, deleting data, pricing; Graphiti README and custom entity and edge types.
- Mem0: graph memory, custom instructions, add, add memories API, update.
- Cognee: memify, legacy operations and cross-connect, ontologies, custom prompts, entity deduplication.
- Supermemory: how it works, document operations, memory review, memory operations.
- Hindsight (Vectorize): retain.
- Neo4j Agent Memory (Neo4j Labs): extraction pipeline, resolution and deduplication, framework comparison.
- LlamaIndex: Property Graph Index guide. LangChain: LangMem semantic memory extraction.
- Mnemoverse: API reference (
/memory/write,/memory/read,/memory/feedback,/memory/graph,DELETE /memory/atoms/{atom_id}), the MCP server tool list, the MCP tool reference and the changelog, read 24 November 2026.
Tools, notes and search
- Reference MCP memory server, README and source.
- Basic Memory: observations and relations, knowledge format.
- Obsidian Help: outgoing links and unlinked mentions, manage notes, daily notes; Smart Connections README, a community plugin.
- Letta: MemFS. Context Link: AI knowledge management.
Research and practitioners
- Xu and colleagues, A-MEM, and its README; Chhikara and colleagues, Mem0 paper, the vendor's own LOCOMO measurement with an LLM judge.
- Andrej Karpathy, LLM Wiki, 4 April 2026, an idea file.
- Hacker News: vbarsoum, 6 April 2026, who built their own version.
- dev.to: zaferdace, 17 April 2026; eyanpen, 24 April 2026; hannune, 30 September 2026, who builds an entity-resolution API; kingsleyonoh, 30 March 2026.
Related
- Agent memory knowledge graphs compared
- Knowledge graph memory for agents
- Long-term associative memory in Python
- Hindsight vs Graphiti
- Agent memory consolidation compared
- Agent memory consolidation
- RAG vs agent memory
- Learn from user corrections
Sources were read on 24 November 2026; the page describes them as of that date.
Who wrote this. Mnemoverse publishes this page and is one of the systems in its table, so we are an interested party. Every behaviour is quoted or paraphrased from the vendor's own documentation on the date in Sources, ours included. Send corrections through contact.
Edward Izgorodin · Mnemoverse · 24 November 2026
