Skip to content

Latest commit

 

History

History
101 lines (65 loc) · 4.13 KB

File metadata and controls

101 lines (65 loc) · 4.13 KB

Guide: Memory Engine

What you'll learn: How your oracle remembers things across conversations using the Memory Engine.


What It Does

The Memory Engine gives your oracle persistent memory. It remembers user preferences, organization knowledge, and context from past conversations — so users don't have to repeat themselves.


Three Knowledge Scopes

Your oracle organizes memories into three scopes:

Scope What it stores Who can access it
User memories (private) Personal preferences, past requests, context Only that specific user
Organization public Customer-facing docs, FAQs, product info All users
Organization private Internal processes, policies, playbooks Internal members only

How to Use It

You don't need to configure anything special — just talk to your oracle naturally.

Saving memories:

You: "Remember that I prefer dark mode and weekly reports on Mondays"
Oracle: Got it — I'll remember your preferences.

Adding organization knowledge (org owners only):

You: "Add this to the knowledge base: Our refund policy is 30 days, no questions asked"
Oracle: Should this be public (accessible to customers) or private (internal only)?
You: "Public"
Oracle: Added to public knowledge.

Retrieving memories:

You: "What do you know about me?"
Oracle: I know you prefer dark mode and like weekly reports on Mondays.

You: "What's our refund policy?"
Oracle: Your refund policy is 30 days, no questions asked.

Your oracle automatically searches its memory at the start of each conversation to pull in relevant context.


Automatic Page Memory

When your oracle creates or updates a page, the operation is automatically logged to the Memory Engine. This means:

  • Page creation — the oracle remembers it created a page, what it's called, who owns it, and how many blocks it has.
  • Page updates — the oracle remembers what was changed (title, content, etc.) and tracks the diff (old vs new).
  • Editor sessions — after the oracle finishes editing a page, a summary of all operations is logged (e.g., "3 blocks edited, 2 blocks created").

This happens automatically — no configuration needed. The oracle uses this memory to recall what documents exist and what it has written, so it can reference or update them in future conversations.

Memory logging is fire-and-forget: if the Memory Engine is unavailable, page operations still succeed. Nothing is blocked.


Available Tools

These are the tools the Memory Engine provides. Your oracle uses them automatically — you just talk naturally.

Tool What it does
search_memory_engine Searches across all memory scopes for relevant context
add_memory Saves a personal memory for the current user
add_oracle_knowledge Adds organization knowledge (org owners only)
delete_episode Removes a specific memory
delete_edge Removes a relationship between memories
clear Clears all memories (use with caution)

User vs Org Owner Mode

Regular users can save personal memories and search all scopes. Org owners can also add organization knowledge (both public and private). When an org owner adds organization knowledge, the oracle always confirms the scope — public or private — before saving.


Configuration

Variable Description
MEMORY_MCP_URL URL of the Memory Engine MCP server
MEMORY_ENGINE_URL URL of the Memory Engine API

See Environment Variables for the full list.