Skip to main content

The Problem

You’re building an AI product — a copilot, a support bot, a companion app. Users expect it to remember them, but building a memory layer means vector databases, extraction pipelines, deduplication, and conflict handling: months of infrastructure that isn’t your product.

What MemoryLake Changes

MemoryLake is your memory backend. Two integration styles, one shared memory pool: Both write to the same pool: memory captured through the Router is searchable through the API, and vice versa.

Path A: Memory Router — memory as a base-URL change

Create one Boundary per user (it binds workspace + project + actors into a single scope id), then route calls through the gateway:
Each user’s conversations read and write only their own memory — no retrieval code, no extraction pipeline, no schema. BYOK mode lets you keep your existing provider account and billing. See the Memory Router quickstart.
Memory Router is in private preview — contact support@memorylake.ai for access. The REST API path below is generally available.

Path B: REST API — explicit memory operations

Model your tenancy — a workspace per tenant, an actor per end user, and a project per knowledge domain — then feed and query memory where it fits your flow:
The API also gives you what DIY memory stacks usually lack:
  • Documents: upload files to the Library, import them into a project, and search their content alongside facts
  • Per-user memory: actor facts follow a user across projects, so you don’t rebuild identity plumbing
  • Traces: see exactly where a memory came from — auditability for user-facing “why do you know this?”
  • Conflicts: list and resolve contradictory memories programmatically instead of serving stale facts
  • Forget: hard-delete a fact — straightforward GDPR “right to be forgotten” handling
Start with Core Memory Operations, which walks the whole flow end to end.

Add Models, Skip Provider Accounts

Pair either path with Model Router: one OpenAI-compatible endpoint (https://app.memorylake.ai/v1) covering mainstream models, with quota control, logs, and failover — the same sk-… key you already hold.

Design Notes for Production

  • Scope per user, always: one boundary (Router) or one project (API) per user prevents cross-user memory leakage by construction.
  • Recall selectively: retrieval is scoped and ranked, but your prompt budget is yours — take the top results, not everything.
  • Surface memory to users: expose “what I know about you” (list + trace) and “forget this” (delete). It builds trust and simplifies compliance.
  • Handle conflicts: poll or review conflicting memories so your app never asserts two contradictory facts about a user.

Go Deeper

Memory Router

Gateway architecture, BYOK, boundaries, observability.

API Reference

Every endpoint: projects, documents, memories, search, conflicts.