-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Add memory_batch MCP tool for bulk memory_entries writes #1494
Copy link
Copy link
Open
Description
Problem
agentdb_batch writes to the episodes table, not memory_entries. There is no batch tool for memory_entries, forcing users to either:
- Call
memory_storesequentially (slow — serialized by the MCP server, ~2-3h for 1200+ entries) - Write directly to SQLite using ruflo's own deps (our current workaround)
Request
Add a memory_batch MCP tool that bulk-inserts into memory_entries with proper embeddings, similar to how agentdb_batch works for episodes.
Suggested interface
{
"tool": "memory_batch",
"params": {
"entries": [
{
"key": "knowledge:dimension:doc:section",
"value": "content text",
"namespace": "knowledge",
"tags": ["source:brana-knowledge", "type:dimension"],
"upsert": true
}
]
}
}Context
memory_storetargetsmemory_entriestable — correct table, but no batch supportagentdb_batchtargetsepisodestable — has batch support, but wrong tableguidancerecommendsembeddings_batch,memory_import,memory_export,memory_compact— but none are wired as MCP tools- Our workaround: Node.js script using ruflo's own
better-sqlite3+@xenova/transformersto write directly tomemory_entrieswith 384-dim embeddings (1247 sections in 88s)
Related
- Table split between
memory_entriesandepisodesis undocumented — users expectagentdb_batchto work for memory storage
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels