How Mem0-style systems extract structure from conversations
| ENTITIES | ||
|---|---|---|
| ID | Type | Attributes |
| austin | person | group member |
| jg | person | group member |
| sarah | person | org: Huawei |
| yaxiong | person | org: Huawei |
| mem0 | tech | memory system |
| act-r | paper | memory research |
| proj-1 | project | memory system |
| RELATIONSHIPS | |||
|---|---|---|---|
| From | Relation | To | When |
| austin | collaborates | jg | Mar 1 |
| austin | works_on | proj-1 | Mar 1 |
| jg | works_on | proj-1 | Mar 1 |
| proj-1 | uses | mem0 | Mar 2 |
| austin | met_with | sarah | Mar 5 |
| sarah | discussed | act-r | Mar 5 |
| sarah | colleague_of | yaxiong | Mar 6 |
| yaxiong | authored | act-r | Mar 6 |
graph LR
subgraph People
austin((Austin))
jg((JG))
sarah((Sarah))
yaxiong((Yaxiong))
end
subgraph Work
proj1[Memory Project]
mem0[Mem0]
actr[ACT-R Paper]
end
austin -->|collaborates| jg
austin -->|works_on| proj1
jg -->|works_on| proj1
proj1 -->|uses| mem0
austin -->|met_with| sarah
sarah -->|discussed| actr
sarah -->|colleague_of| yaxiong
yaxiong -->|authored| actr
style austin fill:#388bfd,stroke:#58a6ff,color:#fff
style jg fill:#388bfd,stroke:#58a6ff,color:#fff
style sarah fill:#388bfd,stroke:#58a6ff,color:#fff
style yaxiong fill:#388bfd,stroke:#58a6ff,color:#fff
style proj1 fill:#9e6a03,stroke:#d29922,color:#fff
style mem0 fill:#6e40c9,stroke:#a371f7,color:#fff
style actr fill:#238636,stroke:#3fb950,color:#fff
MATCH (sarah)-[:colleague_of]->(person) RETURN person
β Yaxiong (Huawei)
MATCH path = (austin)-[*1..3]->(actr) RETURN path
β Austin β met_with β Sarah β discussed β ACT-R
β Austin β met_with β Sarah β colleague_of β Yaxiong β authored β ACT-R
MATCH (p:project)-[:uses]->(tech) RETURN p, tech
β Memory Project uses Mem0
flowchart LR
MSG[New Message] --> LLM[LLM Extraction]
LLM --> ENT[Entities]
LLM --> REL[Relationships]
ENT --> DB[(Graph DB)]
REL --> DB
QUERY[User Query] --> SEARCH[Graph Traversal]
DB --> SEARCH
SEARCH --> RESULT[Rich Context]
style LLM fill:#f85149,stroke:#da3633
style DB fill:#238636,stroke:#3fb950
linkStyle 0,1,2,3,4 stroke:#f85149
Red path = cost per message (LLM extraction)
Green = benefit (rich queryable context)