FAQ

Frequently asked.

Common questions about agent memory architecture and Brain — concepts, deployment, pricing, and security.

Concepts

What is agent memory?
Agent memory is durable, structured state — facts, preferences, events, entities, and relations — that an LLM agent persists outside its context window and retrieves on demand. It is what makes an agent feel continuous across turns, sessions, and tasks.
How is agent memory different from RAG?
RAG retrieves from a static document corpus. Agent memory writes new state from interactions, types it, ages it, supersedes it when contradicted, and reasons over relations. RAG is a read-only library; memory is a living workspace.
How is agent memory different from a vector database?
A vector database stores embeddings and returns nearest neighbors — useful storage substrate. A memory system adds typed schemas, multi-retriever fusion, supersession, decay, drift detection, and confidence scoring on top. Calling a vector DB 'memory' is like calling Postgres 'an application.'
When should I use agent memory vs long context windows?
Long context wins when the relevant material is small, fits in the budget, and changes per request (one-shot analysis of a document). Memory wins when state must accumulate from interactions and persist across sessions. Stanford's Lost-in-the-Middle work showed long context degrades on large prompts; memory + retrieval avoids that.
What memory types are essential?
Five canonical types: fact (stable predicate), preference (mutable choice), event (timestamped occurrence), entity (identity), relation (typed edge). Treating memory as flat text collapses these and loses temporal and relational signal.

About Brain

What is Brain?
Brain is an open-source agent memory layer built in Rust. It implements a 7-stage write pipeline, typed memory schema (fact / preference / event / entity / relation), 5-retriever hybrid retrieval with RRF fusion, freshness decay, supersession, drift detection, and 3-layer hallucination defense.
Is Brain open source?
Yes — Apache 2.0. The Rust core, TypeScript and Python SDKs, visualization library, and architectural spec are all open. github.com/arc-labs.
What's the difference between Brain and Mem0?
Mem0 is the easiest agent memory framework to start with — three lines of Python from zero to working. Brain is more opinionated about quality at write time: 7-stage filtering pipeline, typed schemas, multi-retriever fusion, drift detection. Both are open source. Brain fits long-running production conversational agents; Mem0 fits prototypes and demos.
What's the difference between Brain and LangChain Memory?
LangChain Memory abstractions (BufferMemory, WindowMemory, SummaryMemory) are conversation-scoped — they handle continuity within a single session. Brain is durable, cross-session memory with types, supersession, and decay. They compose: LangChain for in-session, Brain for cross-session.
Does Brain replace my CRM / knowledge base / vector database?
No. Brain complements them. The CRM / KB stays the system of record; Brain is the working surface that makes their data usable in real-time agent prompts. Brain has its own built-in vector index — a memory-mapped vector arena with an in-RAM HNSW index — so it is not layered on top of a separate vector database.

Deployment & hosting

How do I run Brain?
Two modes: self-hosted (you run the Brain server — a single Rust binary, no external database to operate) or managed cloud (we operate the infrastructure). Switch modes with one config line.
What languages and runtimes does Brain support?
Rust core; first-party SDKs for TypeScript (via napi-rs) and Python (via PyO3). REST API for everything else. Node 20+, Python 3.10+, Rust 1.78+.
What database does Brain use?
Brain ships its own purpose-built Rust storage engine: a memory-mapped vector arena, a write-ahead log, redb metadata, an in-RAM HNSW vector index, and a tantivy lexical index. There is no external database — the vector index is built in, so you never provision or operate Postgres, pgvector, or a separate vector store.
Can I self-host the managed cloud version?
Yes — the open-source Brain is the same software the managed cloud runs. Self-hosted deployments run the Brain server (a single Rust binary with its built-in storage engine — no external database); we provide deployment guides for AWS, GCP, and bare-metal.
What scale does Brain support?
A single thread-per-core shard handles 10M memories with its in-RAM HNSW index. Scaling out to multiple shards on a node reaches 100M. For 1B+, run a multi-node sharded cluster — Brain scales by adding shards and nodes, not by bolting on an external vector store.

Pricing

How much does Brain cost?
The open-source Brain is free under Apache 2.0. The managed cloud is in design-partner preview; pricing is per-tenant rather than per-vector. Contact sales@arc-labs.ai for current pricing.
Is there a free tier?
The open-source version is free, full-featured, and ships with the same core as the managed cloud. The managed cloud preview is currently invite-only.

Security & compliance

What's Brain's security posture?
TLS 1.3 in transit, AES-256-GCM at rest. Per-tenant isolation at row and query level. Per-tenant data keys via envelope encryption. SOC 2 Type II audit in progress (target Q1 2027). GDPR-compatible deletion. See /security for full details.
Is Brain HIPAA compliant?
Not currently. Contact us if your deployment requires HIPAA — we can scope a path forward.
How does Brain handle deletion requests?
Hard-delete by default. Memories are removed from primary storage and all secondary indexes (vector, lexical, graph) within 24 hours. The audit ledger retains a tombstone (memory ID, deletion timestamp, requester) but not memory content.
Where does Brain store data?
For self-hosted: wherever you run the Brain server. For managed cloud: US-East, EU-West, or AP-South — selectable at create time. Cross-region data movement is opt-in.

Still have questions?

The Learn track has 62 in-depth pages, or write to us directly.

Updates from the lab.

Engineering notes, research drops, occasional product updates. Roughly monthly.