# 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 to
- `chunk_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`.
