Memory Operations
Store, retrieve, and maintain high-quality memories in Memanto.Memory Fundamentals
What is a Memory?
A memory in Memanto includes:- Content: The core information.
- Type: Semantic category (fact, preference, decision, etc.).
- Title (optional): Short label for readability.
- Confidence (optional): Reliability score from 0 to 1.
- Metadata (optional): Extra structured context.
Memory Lifecycle
Core Operations
Use these commands for most workflows:- Store a memory:
memanto remember "..." --type fact - Batch store:
memanto remember --batch memories.json - Recall semantically:
memanto recall "..." - Answer from context:
memanto answer "..." - Delete a memory:
memanto forget MEMORY_ID - Detect contradictions:
memanto conflicts - Export memory history:
memanto memory export
Uploading Files into Memory
When information already exists in documents, upload files instead of manually adding many individual memories.Supported Formats
.pdf, .docx, .xlsx, .json, .txt, .csv, .md (up to 5 GB per file).
CLI
Activate an agent session, then upload:REST API
Upload vs Remember
Use upload when… | Use remember when… |
|---|---|
| You have existing documents | You are storing short atomic facts |
| Content spans many pages | You want explicit memory typing per item |
| You ingest structured data files | You want precise confidence per memory |
Extracting from Conversations
If you have raw chat logs, Memanto can automatically parse the conversation and use the underlying LLM to extract durable, structured memories (like facts and preferences) while discarding the noise.Using the Web UI
The Memanto Web Dashboard features an Extract tab in the Playground:- Paste a JSON array of conversation turns (
[{"role": "user", "content": "..."}, ...]). - Click Preview Extraction to review the memory cards Memanto generated. You can modify types, content, and confidence.
- Click Save to Database to persist the selected facts.
- (Optional) Use Extract & Save to skip the preview and directly persist the memories.
Using the CLI
You can extract and store memories from a local JSON file containing your chat history:Using the REST API
Send your conversation payload to the extract endpoint:Recall Patterns
Semantic Recall
Filter by Type
Limit Result Volume
Temporal Recall
Use the temporal recall variants (--as-of, --changed-since, and --recent) to query memory across time.
See Temporal Memory Details for complete patterns and examples.
Answering and Conflict Management
Grounded Answers
Conflict Detection
Deleting a Memory
Remove a single memory from the active agent by its ID. Find the ID in the output ofmemanto recall, then:
--force to skip it. See the
forget command and Delete Memory API
for details.
For contradictions, prefer resolving conflicts (keep new/old/both, remove both, or replace) over deleting history. Use
forget for one-off removals such as a memory stored by mistake.Migrating from Other Providers
Already have memories in Mem0, Letta, or Supermemory? Import them into a Memanto agent withmemanto migrate:
Export and Sync
Export to Markdown
Export to Custom Path
Sync to MEMORY.md
Performance Tips
- Use specific memory types instead of defaulting everything to
fact. - Batch ingest when importing many items.
- Keep recall limits tight for faster, cleaner responses.
- Use confidence scoring when information quality varies.
Best Practices
DO
- Keep memories concise and atomic.
- Record source context in metadata when useful.
- Resolve conflicts explicitly when contradictions arise rather than deleting history.
DON’T
- Store the same fact repeatedly.
- Mix multiple unrelated facts in one memory.
- Over-fetch with very high recall limits by default.
Next Steps
- CLI: Remember, Recall
- API: Remember, Recall
- Temporal Guide: Temporal Memory Details
Memory operations are the core of Memanto. Keep this flow lean, typed, and conflict-aware for best results.