docs/guides/agent/agent_component_reference/chunker_title.md
A component that splits texts into chunks by heading level.
A Token chunker component is a text splitter that uses specified heading level as delimiter to define chunk boundaries and create chunks.
A Title chunker component is optional, usually placed immediately after Parser.
:::caution WARNING Placing a Title chunker after a Token chunker is invalid and will cause an error. Please note that this restriction is not currently system-enforced and requires your attention. :::
Select how a document is split:
:::tip NOTE Available only when Hierarchy is selected. :::
When enabled, chunks include only their heading path and content; content immediately following a parent heading is kept as a separate chunk.
:::tip NOTE Available only when Hierarchy is selected. :::
Treats the first split as a global heading to maintain consistent context across the document hierarchy. Ideal for resumes where the first section identifies the subject.
Specifies the heading level to define chunk boundaries:
Click + Add regular expressions to add heading levels here or update the corresponding Regular Expressions fields for custom heading patterns.
The global variable name for the output of the Title chunker component, which can be referenced by subsequent components in the ingestion pipeline.
chunksArray<Object>