Contents

Embed Document

embed_document · Nodes · Data

Embeds document content for semantic retrieval.

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.

Inputs

  • inputRequired

Outputs

  • output

Configuration

FieldTypeRequiredDescription
namespace_idmemory_namespace_refYesMemory namespace to write the chunks into
chunk_charsintegerNo
chunk_overlap_charsintegerNo
sentence_aware_chunkingbooleanNo
base_configrecordNoShared 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).