What is a Memory?
A Memory is a unit of structured knowledge that Synap extracts from raw documents. When you ingest content — whether it is an AI chat conversation, a PDF, a knowledge base article, or a plain text document — Synap’s extraction pipeline breaks it down into discrete, typed memory units. Each memory has:- A type: one of five structured categories (fact, preference, episode, emotion, temporal event)
- A confidence or strength score: a 0.0 to 1.0 value indicating extraction certainty
- Source references: links back to the original document and extraction context
- Entity links: connections to resolved entities (people, organizations, concepts)
- Scope: the visibility boundary (user, customer, client, or world)
- Timestamps: creation time, last accessed time, and optional temporal anchors
A single ingested document can produce dozens or hundreds of individual memories. A five-minute conversation might yield facts about the user’s preferences, an episode describing what they discussed, temporal events about upcoming deadlines, and emotional context about how they felt.
What is Context?
Context is the assembled output that Synap delivers to your AI agent when it requests information. A context response contains:- Retrieved memories: the most relevant memories from long-term storage, ranked by relevance, recency, and confidence
- Conversation history: the accumulated short-term context from the current session (if applicable)
- Scope metadata: information about which scope levels contributed to the response
Short-term vs Long-term Memory
Synap distinguishes between two categories of memory based on their lifespan and purpose.Short-term Context
The accumulated context from the current conversation session. It builds turn by turn as the user and agent exchange messages. Short-term context lives only for the duration of the conversation and is managed through context compaction to stay within token limits.Characteristics:
- Ephemeral — exists only during the active session
- Grows with each conversational turn
- Subject to compaction when it exceeds configured thresholds
- Contains the immediate conversational state, recent decisions, and in-progress topics
Long-term Context
Extracted, structured knowledge that persists across conversations and sessions. Long-term memories are produced by the ingestion pipeline and stored in vector and graph engines. They survive indefinitely (subject to retention policies) and are retrieved based on relevance to the current query.Characteristics:
- Persistent — survives across sessions, days, months
- Built from ingested documents via the extraction pipeline
- Stored in vector and graph storage engines
- Retrieved based on semantic relevance, recency, and confidence scoring
The five memory types
Synap’s extraction pipeline produces five distinct types of structured memory. Each type captures a different dimension of knowledge:| Type | What it captures | Key metric | Example |
|---|---|---|---|
| Facts | Factual statements and knowledge | Confidence (0.0-1.0) | “The API rate limit is 1000 req/min” |
| Preferences | Likes, dislikes, and behavioral choices | Strength (0.0-1.0) + direction | ”User prefers concise responses” |
| Episodes | Event narratives and interactions | Significance (0.0-1.0) | “Discussed migration plan in standup” |
| Emotions | Detected emotional states | Intensity (0.0-1.0) | “User expressed frustration with onboarding” |
| Temporal Events | Time-anchored information | Event type (point/recurring/deadline) | “Board meeting scheduled for March 15” |
You can configure which memory types are extracted via the Memory Architecture Configuration. Not every application needs all five types — a simple FAQ bot might only need facts, while a personal assistant benefits from all five.
How memories become context
The journey from raw data to delivered context follows a well-defined pipeline:Ingestion
You submit raw content to Synap via the SDK or API. This can be an AI chat conversation, a document, a knowledge base article, or any text content. You specify the
document_type, and optionally the user_id and customer_id to set the scope.Extraction
Synap’s pipeline processes the raw content through multiple extraction stages. It identifies entities, resolves them against known entities, and extracts structured memories (facts, preferences, episodes, emotions, temporal events) with confidence scores and source references.
Storage
Extracted memories are stored in both vector storage (for semantic similarity search) and graph storage (for entity relationships and structured queries). Memories are indexed by scope, type, entity, and embedding vector.
Retrieval
When your agent needs context, it sends a retrieval request with search queries and scope identifiers. Synap searches across applicable scope levels, finding memories that are semantically relevant to the query.
Next steps
Short-term Context
How conversational context accumulates and is managed within a single session.
Long-term Context
Persistent knowledge that survives across conversations and sessions.
Memory Types
Deep dive into the five structured memory types extracted by Synap’s pipeline.
Memory Scopes
How memory isolation works across users, customers, and organizations.