---
title: "Split Document"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/nodetool/document/splitdocument
markdown: https://docs.nodetool.ai/nodes/nodetool/document/splitdocument.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/nodetool/document/splitdocument.md
---

# Split Document

**Type:** `nodetool.document.SplitDocument`

**Namespace:** `nodetool.document`

## Description

Split text semantically.
    chroma, embedding, collection, RAG, index, text, markdown, semantic

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| embed_model | `language_model` | Embedding model to use | `{"type":"language_model","provider":"ollama","i...` |
| document | `document` | Document ID to associate with the text content | `{"type":"document","uri":"","asset_id":null,"da...` |
| buffer_size | `int` | Buffer size for semantic splitting | `1` |
| threshold | `int` | Breakpoint percentile threshold for semantic splitting | `95` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| text | `str` |  |
| source_id | `str` |  |
| start_index | `int` |  |
| chunks | `list` |  |

## Related Nodes

Browse other nodes in the [nodetool.document](./) namespace.
