Skip to content

递归字符文本分割器节点#

¥Recursive Character Text Splitter node

“递归字符文本分割器”节点会递归地分割文档数据,以尽可能长时间地保持所有段落、句子和单词的完整性。

¥The Recursive Character Text Splitter node splits document data recursively to keep all paragraphs, sentences then words together as long as possible.

本页提供递归字符文本分割器节点的参数以及更多资源的链接。

¥On this page, you'll find the node parameters for the Recursive Character Text Splitter node, and links to more resources.

Parameter resolution in sub-nodes

Sub-nodes behave differently to other nodes when processing multiple items using an expression.

Most nodes, including root nodes, take any number of items as input, process these items, and output the results. You can use expressions to refer to input items, and the node resolves the expression for each item in turn. For example, given an input of five name values, the expression {{ $json.name }} resolves to each name in turn.

In sub-nodes, the expression always resolves to the first item. For example, given an input of five name values, the expression {{ $json.name }} always resolves to the first name.

节点参数#

¥Node parameters

  • 块大小:输入每个数据块的字符数。

¥Chunk Size: Enter the number of characters in each chunk.

  • 块重叠:输入数据块之间的重叠比例。

¥Chunk Overlap: Enter how much overlap to have between chunks.

模板和示例#

¥Templates and examples

Template widget placeholder.

相关资源#

¥Related resources

请参阅 LangChain 的文本分割器文档LangChain 的递归字符分割文档 获取有关服务的更多信息。

¥Refer to LangChain's text splitter documentation and LangChain's recursively split by character documentation for more information about the service.

View n8n's Advanced AI documentation.