Prepare Memory
memory_prepare · Nodes · Data
Prepares content for storage in memory.
Prepare Memory#
Chunks text and embeds each chunk without writing to storage.
Config:
Embeds with the workspace's embedding model, chosen in the Memory view. With none chosen, the node fails with No embedding model configured. A model field in an older saved config is ignored. Each prepared unit carries embedding_provider_id and embedding_model_id naming that model.
namespace_id: ULID of the memory namespace the prepared units belong tochunk_chars,chunk_overlap_chars,sentence_aware_chunking: chunking settings
Input goes on canonical input.
- Single:
{ "text": "...", "initial_relevancy": 1, "half_life_seconds": 86400, "properties": { "kind": "note" } } - Bulk:
{ "documents": [{ "text": "...", "initial_relevancy": 1, "half_life_seconds": 86400, "properties": { "kind": "note" } }] }
Output:
- Single:
{ "memories": [{ "title": "...", "text": "...", "embedding": <binary>, "properties": { ... }, "chunk_index": 0 }] } - Bulk:
{ "documents": [{ "index": 0, "memories": [{ ... }] }] }
Each prepared unit's title is derived from its chunk text: whitespace runs collapsed to one space, then the first 120 characters, trimmed.
Use this before persistence or custom routing.
initial_relevancy is the chunk's write-time signal quality/usefulness, not search confidence. half_life_seconds controls durability: shorter for volatile knowledge, longer or omitted for stable knowledge.
This node does not write to storage, so it carries no links. Provenance is recorded when the chunk is persisted, through memory.insert or memory.ingest.
Inputs
inputRequired
Outputs
output
Configuration
| Field | Type | Required | Description |
|---|---|---|---|
namespace_id | memory_namespace_ref | Yes | Memory namespace the prepared units belong to |
chunk_chars | integer | No | |
chunk_overlap_chars | integer | No | |
sentence_aware_chunking | boolean | No | |
base_config | record | No | Shared node configuration. failure_mode decides what a failure of this node does to the workflow; leave it at the default stop unless the workflow handles the failure itself on the node's error output (route_to_error) or the node is a rare emergency kill switch (stop_workflow). |