Migrate

Migrate from Zep

Mapping Zep concepts to Spectron's unified graph.

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

Zep conceptSpectron 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 actionSpectron
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: API-KEY. Base path: /api/v1/{context_id}/.

await client.facts.create_batch(
messages=[{"role": "user", "content": "I was promoted to Head of Platform."}],
scope=["org=acme", "user=alice"],
idempotency_key="zep-migration-thread-1",
)

hits = await client.query(
query="What is Alice's role?",
limit=10,
scope=["org=acme", "user=alice"],
)
  1. Reconciliation — conflicting sources emit uncertainty instead of silent overwrite.

  2. Authoritative vs experientialsource.kind distinguishes document vs turn provenance.

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

Was this page helpful?