# Embed Document

Chunks a provided text document into searchable workspace memories.

Prefer `memory` with operation `ingest` for new workflows. This node remains available for existing focused document-ingest workflows.

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.

- `namespace_id`: ULID of the memory namespace to store into
- `chunk_chars`, `chunk_overlap_chars`, `sentence_aware_chunking`: chunking settings

Input goes on canonical `input`.

- Single: `{ "text": "...", "links": [{ "relation": "source", "source": { "kind": "external_url", "value": "https://example.com/source" } }], "initial_relevancy": 1, "half_life_seconds": 86400, "properties": { "kind": "note" } }`
- Bulk: `{ "documents": [{ "text": "...", "links": [{ "relation": "source", "source": { "kind": "table_row", "value": { "table_id": "01J00000000000000000000000", "row_id": "row-1" } } }], "initial_relevancy": 1, "half_life_seconds": 86400, "properties": { "kind": "note" } }] }`

Output:

- Single: `{ "memories": [{ "id": "...", "namespace_id": "...", "title": "...", "text": "...", "properties": { ... } }] }`
- Bulk: `{ "documents": [{ "index": 0, "memories": [{ ... }] }] }`

Each chunk inherits the input `properties`. Each chunk's `title` is derived from its own text: whitespace runs collapsed to one space, then the first 120 characters, trimmed.

`initial_relevancy` is the document 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. `links` records provenance, and only `source` links are accepted here because the generated chunk ids do not exist yet.
