Orq MCP is live: Use natural language to interrogate traces, spot regressions, and experiment your way to optimal AI configurations. Available in Claude Desktop, Claude Code, Cursor, and more. Start now →
Entity-scoped long-term memory that persists across sessions, enabling personalization and context continuity for AI agents.
Memory Stores provide persistent storage for agent memories, allowing agents to retain and retrieve information across conversations and sessions. Unlike Knowledge Bases, Memory Stores are entity-scoped: each Memory within a store is tied to a specific entity (a user, session, or any object the application defines), enabling personalized, per-entity recall.Only long-term memory is currently supported: stored information persists indefinitely with no automatic expiration.To use a Memory Store with an Agent, see Connect Memory Stores.
Connect Memory Stores to Agents
Give the agent persistent per-entity memory across conversations.
Memory Stores store arbitrary text per entity, such as a user or session. Documents accumulate over time and are retrieved semantically on each interaction. Use when an agent needs to remember what a specific person said or did in a previous conversation.
A Memory represents a specific entity within a Memory Store, identified by an entity_id. Each Memory holds Documents: the actual text content embedded for semantic search.
AI Studio
API & SDK
CLI
Create an EntityOnce a Memory Store is created, select Add Entity, enter an ID for the entity, and press Save.
Choose a clear identifier to find entities later.
View MemoriesSelect an entity to see all Memory Documents stored for it. Each document shows the date it was recorded. Use date filters to narrow results.
Use the date filters to find memories in an entity.
Add a Memory DocumentUse Add Memory to manually add a Memory Document to an entity. Fill in the content and press Add Memory.
Memories are best managed dynamically through the API. See the API & SDK tab for programmatic access.
Add a Memory DocumentDocuments hold the text content that agents can retrieve. Each document is embedded automatically when created.
curl --request POST \ --url https://api.orq.ai/v2/memory-stores/customer_information/memories/<memory_entity_id>/documents \ --header 'accept: application/json' \ --header 'authorization: Bearer <ORQ_API_KEY>' \ --header 'content-type: application/json' \ --data '{ "text": "Customer prefers email communication. Best contact window: 2-4 PM EST. Premium support subscriber."}'
document = client.memory_stores.create_document( memory_store_key="customer_information", memory_entity_id=memory._id, text="Customer prefers email communication. Best contact window: 2-4 PM EST. Premium support subscriber.")print(f"Created document with ID: {document._id}")
const document = await client.memoryStores.createDocument({ memoryStoreKey: 'customer_information', memoryEntityId: memory._id, requestBody: { text: 'Customer prefers email communication. Best contact window: 2-4 PM EST. Premium support subscriber.', },});console.log(`Created document with ID: ${document._id}`);
Update a Memory Document
curl --request PATCH \ --url https://api.orq.ai/v2/memory-stores/customer_information/memories/<memory_entity_id>/documents/<document_id> \ --header 'accept: application/json' \ --header 'authorization: Bearer <ORQ_API_KEY>' \ --header 'content-type: application/json' \ --data '{ "text": "Customer strongly prefers email. Contact window: 2-4 PM EST weekdays. Premium support subscriber since Jan 2024."}'
client.memory_stores.update_document( memory_store_key="customer_information", memory_entity_id="<memory_entity_id>", document_id="<document_id>", text="Customer strongly prefers email. Contact window: 2-4 PM EST weekdays. Premium support subscriber since Jan 2024.")
await client.memoryStores.updateDocument({ memoryStoreKey: 'customer_information', memoryEntityId: '<memory_entity_id>', documentId: '<document_id>', requestBody: { text: 'Customer strongly prefers email. Contact window: 2-4 PM EST weekdays. Premium support subscriber since Jan 2024.', },});
Entity ID strategy: Use consistent, unique identifiers. Prefix by type (e.g., user_123, session_456) and keep IDs stable across all services.Descriptions: Write exhaustive Memory Store descriptions. Agents use them to identify the correct store to query.Organization: Create separate stores for different contexts (customers, products, sessions). Use descriptive keys.Metadata: Use tags for filtering and categorization, not for storing large text content. Keep data types consistent per field.