---
title: "Knowledge graph | Agent Memory | SurrealDB"
description: "Agent Memory stores memory as a knowledge graph: entities as nodes, typed relationships as edges, and edges as queryable documents."
url: https://surrealdb.com/agent-memory/knowledge-graph
---

KNOWLEDGE GRAPH

# Memory that's all connected

Agent Memory stores memory as a knowledge graph: entities as nodes, typed relationships as edges. And because edges are documents, they carry their own properties, confidence, and timestamps - so the connections are as queryable as the facts themselves.

[Join the waitlist](https://surrealdb.com/agent-memory/get-started) [Technical deep-dive](https://surrealdb.com/agent-memory/deep-dive)

1. ![Babcock](https://surrealdb.com/assets/static/babcock.lo4rnVg1.svg)
2. ![ING](https://surrealdb.com/assets/static/ing.X3I6S3_V.svg)
3. ![British Airways](https://surrealdb.com/assets/static/british-airways.KEsZiwV-.svg)
4. ![Nvidia](https://surrealdb.com/assets/static/nvidia.DaIEuMil.svg)
5. ![Apple](https://surrealdb.com/assets/static/apple.D5pq4flY.svg)
6. ![SpaceX](https://surrealdb.com/assets/static/spacex.CQJEk-IL.svg)
7. ![Samsung](https://surrealdb.com/assets/static/samsung.CH-vQgnb.svg)
8. ![adidas](https://surrealdb.com/assets/static/adidas.DdTC5qhk.svg)
9. ![Tencent](https://surrealdb.com/assets/static/tencent.paQmLxyy.svg)
10. ![Alibaba](https://surrealdb.com/assets/static/alibaba.B16idgfM.svg)
11. ![PolyAI](https://surrealdb.com/assets/static/poly-ai.c3w_fAg6.svg)
12. ![Later](https://surrealdb.com/assets/static/later.Ds736jFO.svg)
13. ![Verizon](https://surrealdb.com/assets/static/verizon.BI7CajdX.svg)
14. ![Liberty Mutual](https://surrealdb.com/assets/static/liberty-mutual.B7qOU1pd.svg)
15. ![Walmart](https://surrealdb.com/assets/static/walmart.BjDg_Sr8.svg)
16. ![Carrier](https://surrealdb.com/assets/static/carrier.D21gC6NX.svg)
17. ![Saks Fifth Avenue](https://surrealdb.com/assets/static/saks-fifth-avenue.COIDpLSb.svg)
18. ![San Francisco Compute Company](https://surrealdb.com/assets/static/sfcc.B7jlImq4.svg)
19. ![Shield AI](https://surrealdb.com/assets/static/shield-ai.pINZ0KJr.svg)
20. ![Wix](https://surrealdb.com/assets/static/wix.DvHhmoBi.svg)

01 |CONNECTED MEMORY

## Entities as nodes, relationships as edges

People, systems, facts, and decisions become nodes; how they relate becomes typed edges you can traverse. One question can walk from a person to their team to the decisions they own, in a single step of graph traversal - no join, no second system.

chunk

embedding vector

text

extracted_from

attribute

text

confidence

valid_from

has_source

source

kind

trust

belongs_to

entity

type

name

embedding vector

relation

kind (verb) · valid_from · valid_until

entity

type

name

embedding vector

## A graph, not a pile of vectors

Relationships are first-class, queryable structure - so memory carries meaning, not just proximity in vector space.

### [Typed relationships](https://surrealdb.com/agent-memory/deep-dive)

Edges name how things relate, so the graph carries meaning, not just similarity.

Learn more

### [Edges are documents](https://surrealdb.com/agent-memory/deep-dive)

Each edge carries its own properties, confidence, and timestamps - queryable like any record.

Learn more

### [Traversal in one step](https://surrealdb.com/agent-memory/deep-dive)

Walk from entity to entity to any depth, without a join or a separate graph store.

Learn more

### [Vectors on the same nodes](https://surrealdb.com/agent-memory/recall)

Embeddings sit on the graph, so similarity and relationships are ranked together.

Learn more

### [Facts stay linked](https://surrealdb.com/agent-memory/memory)

New memories attach to the entities they're about, so context compounds instead of fragmenting.

Learn more

### [One copy of the data](https://surrealdb.com/agent-memory/deep-dive)

The graph, the documents, and the vectors are the same records - nothing to sync.

Learn more

02 |ONE SUBSTRATE

## Relationships you can't get from a vector store

A flat vector store can tell you two memories read similarly. It can't tell you that this person owns that decision, or that this fact superseded that one. Agent Memory keeps the connections as first-class, queryable structure.

### Meaning, not just similarity

Typed edges capture how memories relate, so recall can reason over structure, not only distance in vector space.

### Compounds over time

Every new memory links into the existing graph, so the agent's understanding of your world deepens instead of resetting.

### One engine, one query

Graph, vector, and document live in one SurrealDB engine, so a single query spans all three with no plumbing between them.

## Keep exploring

### [Typed memory](https://surrealdb.com/agent-memory/memory)

The categories that become graph nodes.

Explore

### [Recall](https://surrealdb.com/agent-memory/recall)

How graph connections feed retrieval.

Explore

### [Technical deep-dive](https://surrealdb.com/agent-memory/deep-dive)

The graph model in full.

Explore

GET STARTED

## Give your agents connected memory

A knowledge graph, durable memory, and trustworthy recall - one system you buy, secure, and audit once. Built on SurrealDB.

![Samsung](https://surrealdb.com/assets/static/4c58b81e7b3c9466.C_Hv0eml.svg)![NVIDIA](https://surrealdb.com/assets/static/nvidia.DaIEuMil.svg)![Apple](https://surrealdb.com/assets/static/f7dc2519e0d212bc.Cn8MYAK7.svg)![Verizon](https://surrealdb.com/assets/static/18b99996c689000f.B5PQ-nI9.svg)![Tencent](https://surrealdb.com/assets/static/401d8346058682c8.DqM87mst.svg)

SOC 2 Type 2

GDPR

Cyber Essentials Plus

ISO 27001

[Join the waitlist](https://surrealdb.com/agent-memory/get-started) [Talk to sales](https://surrealdb.com/contact/sales)

```json
{"@context":"https://schema.org","@type":"Organization","name":"SurrealDB","url":"https://surrealdb.com","logo":"https://surrealdb.com/assets/static/logo.BG7_TG2b.svg","description":"SurrealDB is the unified data layer for AI. A multi-model database for documents, graphs, vectors, and time-series.","foundingDate":"2022","legalName":"SurrealDB Ltd","identifier":{"@type":"PropertyValue","propertyID":"GB-COH","value":"13615201"},"address":{"@type":"PostalAddress","streetAddress":"3rd Floor, 1 Ashley Road","addressLocality":"Altrincham","addressRegion":"Cheshire","postalCode":"WA14 2DT","addressCountry":"GB"},"contactPoint":[{"@type":"ContactPoint","contactType":"customer support","email":"support@surrealdb.com","url":"https://surrealdb.com/contact","availableLanguage":"English"},{"@type":"ContactPoint","contactType":"sales","email":"info@surrealdb.com","url":"https://surrealdb.com/contact","availableLanguage":"English"},{"@type":"ContactPoint","contactType":"security","email":"security@surrealdb.com","url":"https://surrealdb.com/.well-known/security.txt","availableLanguage":"English"},{"@type":"ContactPoint","contactType":"legal","email":"legal@surrealdb.com","url":"https://surrealdb.com/legal","availableLanguage":"English"}],"hasCertification":[{"@type":"Certification","name":"SOC 2 Type 2"},{"@type":"Certification","name":"GDPR"},{"@type":"Certification","name":"Cyber Essentials Plus"},{"@type":"Certification","name":"ISO 27001"}],"owns":[{"@type":"SoftwareApplication","name":"SurrealDB","url":"https://surrealdb.com/surrealdb"},{"@type":"SoftwareApplication","name":"Agent Memory","url":"https://surrealdb.com/agent-memory"}],"knowsAbout":["multi-model databases","document databases","graph databases","vector search","time-series databases","SurrealQL","Agent Memory","real-time databases","embedded databases","context layer","graph ontology","distributed database","knowledge graphs","distributed transaction protocols","highly-scalable databases"],"sameAs":["https://www.wikidata.org/wiki/Q124316308","https://github.com/surrealdb/surrealdb","https://twitter.com/surrealdb","https://www.youtube.com/@surrealdb","https://www.linkedin.com/company/surrealdb","https://discord.gg/surrealdb","https://www.reddit.com/r/surrealdb","https://www.instagram.com/surrealdb","https://medium.com/surrealdb","https://dev.to/surrealdb"]}
```

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://surrealdb.com"},{"@type":"ListItem","position":2,"name":"Agent Memory","item":"https://surrealdb.com/agent-memory"},{"@type":"ListItem","position":3,"name":"Knowledge graph","item":"https://surrealdb.com/agent-memory/knowledge-graph"}]}
```
