mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-07-22 04:15:24 -04:00
[PR #345] [MERGED] Update chunking-and-cleaning-text.mdx #447
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-docs/pull/345
Author: @sunshinesDL
Created: 7/21/2025
Status: ✅ Merged
Merged: 10/31/2025
Merged by: @RiskeyL
Base:
main← Head:patch-1📝 Commits (2)
2003ae4Update chunking-and-cleaning-text.mdxaf8722fcorrect, update, and remove expired content📊 Changes
3 files changed (+22 additions, -22 deletions)
View changed files
📝
en/guides/knowledge-base/create-knowledge-and-upload-documents/chunking-and-cleaning-text.mdx(+6 -6)📝
ja-jp/guides/knowledge-base/create-knowledge-and-upload-documents/chunking-and-cleaning-text.mdx(+8 -8)📝
zh-hans/guides/knowledge-base/create-knowledge-and-upload-documents/chunking-and-cleaning-text.mdx(+8 -8)📄 Description
非常感谢作者无私贡献的说明文档!在阅读本章过程中,我发现原文 '通用模式' 小节中,关于 '分段标识符' 的解释中描述如下:
分段标识符,默认值为 \n,即按照文章段落进行分块。你可以遵循正则表达式语法自定义分块规则,系统将在文本出现分段标识符时自动执行分段。例如 的含义是按照句子进行分段。例如后好像缺少了转义字符,这里补充正则表达式(?<=[.!?])\s+以查找句子结束标点(., !, ?)后的空白字符,从而按照句子分段。此外,在 "父子模式" 小节中,以下内容好像也遗漏了转义字符:
在子分段内填写以下分段设置: 分段标识符,默认值为 ,即按照句子进行分段。你可以遵循正则表达式语法自定义分块规则,系统将在文本出现分段标识符时自动执行分段。这里补充
\.|\!|\?作为按句子分段的标识符,供作者审核。🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.