Principle:24kchengYe MemoMind Graph Link Creation
| Knowledge Sources | |
|---|---|
| Domains | Knowledge_Graph, Graph_Algorithms |
| Last Updated | 2026-10-28 00:00 GMT |
Overview
Technique that constructs edges in a knowledge graph by linking facts based on temporal proximity, semantic similarity, and explicit causal relationships, enabling graph traversal during retrieval.
Description
After facts are stored, they exist as isolated nodes. Graph link creation adds three types of edges:
- Temporal links: connect facts that occurred close in time. If fact A happened at 10:00 and fact B at 10:05, they are temporally linked. This enables time-adjacent retrieval ("what happened around that event?").
- Semantic links: connect facts with high embedding similarity (cosine similarity > threshold, top-k nearest neighbors). This enables conceptual traversal ("what else relates to this topic?").
- Causal links: connect facts where the LLM identified explicit causal relations (causes, enables, prevents). This enables causal chain retrieval ("what led to this outcome?").
The combination of all three link types creates a rich graph that supports multi-hop retrieval strategies like MPFP (Most Probable Fact Path) and BFS traversal.
Usage
Use this principle when retrieval needs to go beyond simple similarity matching and traverse relationships between facts. It is essential for graph-based retrieval methods and for building a connected knowledge base from isolated facts.
Theoretical Basis
Three link types with distinct creation logic:
# Abstract link creation (not real implementation)
# Temporal: time-proximity links
for fact_a, fact_b in pairs_within_time_window(facts, window=3600):
create_link(fact_a, fact_b, type="temporal")
# Semantic: cosine similarity links (top-k, threshold)
for fact_a in facts:
neighbors = top_k_similar(fact_a, embeddings, k=5, threshold=0.7)
for fact_b in neighbors:
create_link(fact_a, fact_b, type="semantic")
# Causal: LLM-detected relations
for fact in facts:
for relation in fact.causal_relations:
create_link(fact, facts[relation.target], type=relation.relation_type)