remember_fact
Store facts about entities with automatic semantic embedding
Store atomic facts about entities (people, projects, concepts) with automatic semantic embedding for later retrieval.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
entityName | string | REQUIRED | - | Name of entity (1-200 chars) |
entityType | enum | REQUIRED | - | Type: person, concept, project, preference, fact, location, organization |
observation | string | REQUIRED | - | Single atomic fact to remember (1-2000 chars) |
source | enum | OPTIONAL | conversation | Source: conversation, note, document, manual |
validUntil | string | OPTIONAL | - | ISO date for expiring facts (e.g., "2026-12-31") |
Entity Types
| Type | Use For |
|---|---|
person | People, users, contacts |
concept | Ideas, topics, technologies |
project | Projects, initiatives, products |
preference | User preferences, settings |
fact | General facts, data points |
location | Places, addresses, regions |
organization | Companies, teams, groups |
Example Request
Response
Compact Mode (Default)
When COMPACT_RESPONSES=true (default), responses use short keys to reduce token usage by 40-60%:
Verbose Mode
When COMPACT_RESPONSES=false:
Duplicate Detection
If you try to remember a fact that's already stored:
Compact Mode
Verbose Mode
Use Cases
User Preferences
Project Context
Temporary Facts
Errors
| Error | Cause | Fix |
|---|---|---|
| Embedding service not configured | Missing OPENAI_API_KEY or Ollama config | Set OPENAI_API_KEY or configure OLLAMA_BASE_URL |
| Database not configured | Missing Supabase credentials | Set SUPABASE_URL and SUPABASE_SERVICE_KEY |
| Invalid entity name | Name empty or exceeds 200 chars | Provide name between 1-200 chars |
| Invalid observation | Observation empty or exceeds 2000 chars | Provide observation between 1-2000 chars |
| Invalid entity type | Unknown entity type | Use valid types: person, concept, project, preference, fact, location, organization |
| Memory not enabled | ENABLE_MEMORY feature flag is false | Set ENABLE_MEMORY=true |