Portablemind
Portablemind
Docs
Open Portablemind
AI & Agents

AI Memory

How Portablemind agents remember context across conversations.

Portablemind gives your AI a persistent, long-term memory. Unlike simple chat history, the memory system stores what your AI learns — facts, preferences, decisions, solutions — and recalls it semantically across sessions, conversations, and even different agents. The result is an AI that remembers your preferences, past decisions, and learned patterns, so every interaction builds on the last instead of starting from scratch.

Memory matters because it changes the character of your AI from a stateless tool into a knowledgeable collaborator. An assistant with memory knows how you like reports formatted, which approach your team chose last quarter and why, and which solution fixed a problem the last time it appeared. This dramatically improves the relevance and quality of AI responses, and it compounds: the longer your team works with Portablemind, the more useful its AI becomes.

How memory works

Three capabilities work together to make memory more than a transcript archive:

Memories are stored with vector embeddings, so recall works on meaning, not keywords. Asking "What does Ben like?" will surface a memory that says "Ben Koloski loves spaghetti" — no shared words required. When you chat with the AI or an agent runs a task, relevant memories are automatically retrieved and used as context for the response. Under the hood this uses an embedding model configured for your workspace; you don't interact with it directly.

Graph relationships

Memories aren't stored as isolated notes — they're connected through typed relationships, building a knowledge graph of how facts, preferences, and insights relate to each other. When memories are linked, the system classifies the relationship semantically, so connections carry meaning instead of being a generic "related to":

RelationshipMeaning
caused_byCausal link (a bug caused by a configuration)
leads_toConsequence (a decision leads to an implementation)
contradictsConflicting information
referencesCross-reference (an implementation references a design)
spawnsParent-child generation (a feature spawns subtasks)
supersedesReplacement (a new approach supersedes an old solution)
validatesTest or verification of another memory
exemplifiesA concrete example of a pattern

Relationship classification runs in two modes: fast rule-based heuristics (zero cost, keyword-driven) and LLM-based analysis (high accuracy, applied selectively to important memories). The recommended hybrid approach combines both — typically fewer than 5% of relationships need the LLM, keeping costs negligible.

Automatic consolidation

The memory system maintains itself with background processing — no manual curation required:

  • Memory consolidation (daily): identifies patterns across related memories, creates relationships, and extracts derived insights — new knowledge synthesized from what's already stored.
  • Memory pruning (weekly): cleans up low-importance memories and merges duplicates so the memory store stays sharp.
  • Agent learning (daily): analyzes your agents' execution history to recognize patterns and improve their performance over time. See Building AI Agents for how agents use their memory.

You can see all of this for yourself in the Memories section of AI Studio (under Knowledge & Resources in its navigation panel), which renders the memory store as an interactive graph — each node a memory, colored by type and connected by its relationships — with a search that highlights the memories matching your query. There's also a Memory Graph widget for the home dashboard that shows your most recent memories at a glance.

Explore your AI's memory

Memory types

Every memory is classified by type, which helps the AI weigh and retrieve it appropriately:

TypeWhat it captures
FactSpecific facts, data points, or verified information
PreferenceUser preferences, settings, or choices
DecisionImportant decisions made during conversations
InsightAnalysis, conclusions, or discovered patterns
ContextBackground information or situational context
SolutionTechnical solutions, fixes, or configurations

Privacy and isolation

Memory is secure by design. Each workspace's memories are completely isolated — there is no cross-tenant access, and retrieval is governed by the same capability-based access control that protects the rest of your data. This isolation is strong enough to support regulated use cases such as healthcare applications that must maintain compliance while remembering patient context.

What memory unlocks

  • Personalized assistants — the AI remembers your preferences, work patterns, and communication style across sessions, so interactions feel natural rather than repetitive.
  • Smarter development agents — coding agents accumulate solutions, code patterns, and architectural decisions, improving consistency and quality over time.
  • Organizational knowledge — customer insights, market observations, and strategic decisions build into a durable knowledge base your whole team's AI can draw on.

Memories are captured automatically as you work — in chat conversations and as agents complete their tasks — and recalled automatically whenever they're relevant. You don't need to tell the AI to remember or to look something up.

Configuration

Memory behavior is tuned per workspace by an administrator through the workspace's memory management configuration, found in the Administration area's Configuration Manager. Most teams never need to change the defaults, but the tunable settings are:

SettingWhat it controlsTypical value
Enable embeddingsTurns semantic (meaning-based) search on or offOn
Similarity thresholdHow closely a memory must match a query to be recalled (0.0–1.0)0.7
Classification methodHow relationship types are determined: heuristic rules, LLM analysis, or hybridHybrid
Classification thresholdsMinimum similarity and importance scores before the LLM is used to classify a relationship0.9 / 0.8
Max LLM calls per consolidationCost-control cap on LLM classification during each consolidation run50

Note: Semantic search requires an embedding model to be configured for your workspace as part of AI setup. Relationship classification can optionally use one of your configured chat models for higher accuracy.

For API-level details, see the API guide.

Chat & the AI AssistantFile Management