Skip to content

Migrate

Migrate from Zep

Mapping Zep concepts to SurrealDB Agent Memory's unified graph.

Zep and SurrealDB Agent Memory both target durable agent memory, but SurrealDB Agent Memory uses a single SurrealDB graph, explicit reconciliation, and a focused HTTP surface (/facts, /documents, /query, /chat).

Zep conceptSurrealDB Agent Memory equivalentNotes
UserScope path user=…Scopes are hierarchical path strings
SessionSession + optional session_id on /facts/batchTranscript introspection; batch ingest preferred
Memory contextPOST .../contextFormatted string for prompts
FactsEntities + attributes + relationsExtracted and reconciled
Zep Graph / knowledgeDocuments + extracted graphOne unified graph
Summaryprofile, reflect, consolidationReflection is explicit POST .../reflect
Zep-style actionSurrealDB Agent Memory
Add message to sessionPOST /api/v1/{ctx}/facts/batch with messages[]
Search memoryPOST /api/v1/{ctx}/query
Get memory context stringPOST /api/v1/{ctx}/context
Add business dataPOST /api/v1/{ctx}/documents or /facts with infer: "triples"

Auth header: Authorization: Bearer. Base path: /api/v1/{context_id}/.

await client.remember_many(
    messages=[{"role": "user", "content": "I was promoted to Head of Platform."}],
    scopes=["org/acme/user/alice"],
)

hits = await client.recall(
    "What is Alice's role?",
    k=10,
    lens=["org/acme/user/alice"],
)
  1. Reconciliation - conflicting sources emit uncertainty instead of silent overwrite.

  2. Authoritative vs experiential - source.kind distinguishes document vs turn provenance.

  3. Unified recall - one /query router over facts and passages.

Was this page helpful?