Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix: improve UI wording and localization for parsing and chunking settings (#19839)

YanZhang0ae1c0aef896
diff --git a/web/src/locales/en.ts b/web/src/locales/en.ts
index 8eff1ada5c..70b77337df 100644
--- a/web/src/locales/en.ts
+++ b/web/src/locales/en.ts
@@ -494,7 +494,7 @@ Example: A 1 KB message with 1024-dim embedding uses ~9 KB. The 5 MB default lim
artifact: 'Artifact',
toSkills: 'To skills',
processingType: 'Processing type',
- dataPipeline: 'Switch or configure ingestion pipeline.',
+ dataPipeline: 'Select or switch the parsing mode',
dataPipelineTitle: 'Ingestion pipeline',
operations: 'Operations',
taskId: 'Task ID',
@@ -513,7 +513,7 @@ Example: A 1 KB message with 1024-dim embedding uses ~9 KB. The 5 MB default lim
completed: 'Completed',
datasetLog: 'Dataset log',
created: 'Created',
- learnMore: 'Built-in pipeline introduction',
+ learnMore: 'View built-in parser details',
general: 'General',
chunkMethodTab: 'Chunk method',
testResults: 'Results',
@@ -631,9 +631,9 @@ Example: A 1 KB message with 1024-dim embedding uses ~9 KB. The 5 MB default lim
html4excel: 'Excel to HTML',
html4excelTip: `Use with the General chunking method. When disabled, spreadsheets (XLSX or XLS(Excel 97-2003)) in the dataset will be parsed into key-value pairs. When enabled, they will be parsed into HTML tables, splitting every 12 rows if the original table has more than 12 rows. See https://ragflow.io/docs/dataset_configuration#other-format-processing-configuration for details.`,
- autoKeywords: 'Auto-keyword',
+ autoKeywords: 'Number of keywords to extract',
autoKeywordsTip: `Automatically extract N keywords for each chunk to increase their ranking for queries containing those keywords. Be aware that extra tokens will be consumed by the indexing model specified in 'Configuration'. You can check or update the added keywords for a chunk from the chunk list. For details, see https://ragflow.io/docs/dataset_configuration#content-enhancement-configuration.`,
- autoQuestions: 'Auto-question',
+ autoQuestions: 'Auto-question number',
autoQuestionsTip: `Automatically extract N questions for each chunk to increase their ranking for queries containing those questions. You can check or update the added questions for a chunk from the chunk list. This feature will not disrupt the chunking process if an error occurs, except that it may add an empty result to the original chunk. Be aware that extra tokens will be consumed by the indexing model specified in 'Configuration'. For details, see https://ragflow.io/docs/dataset_configuration#content-enhancement-configuration.`,
autoTags: 'Auto-tags',
redo: 'Do you want to clear the existing {{chunkNum}} chunks?',
@@ -705,7 +705,7 @@ Example: A 1 KB message with 1024-dim embedding uses ~9 KB. The 5 MB default lim
paddleocrAlgorithmTip: 'Algorithm to use for PaddleOCR parsing',
paddleocrSelectAlgorithm: 'Select Algorithm',
paddleocrModelNamePlaceholder: 'e.g. paddleocr-from-env-1',
- overlappedPercent: 'Overlapped percent(%)',
+ overlappedPercent: 'Overlap(%)',
generationScopeTip:
'Determines whether RAPTOR is generated for the entire dataset or for a single file.',
scopeDataset: 'Dataset',
@@ -743,9 +743,9 @@ Example: A 1 KB message with 1024-dim embedding uses ~9 KB. The 5 MB default lim
dataFlowPlaceholder: 'Please select a pipeline.',
buildItFromScratch: 'Build it from scratch',
dataFlow: 'Pipeline',
- parseType: 'Parse type',
- manualSetup: 'Pipeline',
- builtIn: 'Built-in',
+ parseType: 'Parse mode',
+ manualSetup: 'Custom ingestion pipeline',
+ builtIn: 'Built-in parsing template',
titleDescription:
'Update your dataset configuration here, particularly the LLM and prompts.',
name: 'Dataset name',
@@ -3536,8 +3536,8 @@ The Indexer will store the content in the corresponding data structures for the
viewResult: 'View result',
running: 'Running',
summary: 'Summary',
- keywords: 'Keywords',
- questions: 'Questions',
+ keywords: 'Auto keywords',
+ questions: 'Auto-question',
metadata: 'Metadata',
fieldName: 'Result destination',
enableSummary: 'Enable Summary',
diff --git a/web/src/locales/zh-traditional.ts b/web/src/locales/zh-traditional.ts
index 8c3d0d7fe4..3b6a6d82fc 100644
--- a/web/src/locales/zh-traditional.ts
+++ b/web/src/locales/zh-traditional.ts
@@ -179,9 +179,9 @@ export default {
'支持多字符作為分隔符,多字符用兩個反引號 \\`\\` 分隔符包裹。若配置成:\\n`##`; 系統將首先使用換行符、兩個#號以及分號先對文本進行分割,隨後再對分得的小文本塊按照「建議文字塊大小」設定的大小進行拼裝。在設定文字分段標識符前請確保理解上述文字分段切片機制。',
html4excel: '表格轉HTML',
html4excelTip: `與 General 切片方法配合使用。未開啟狀態下,表格檔案(XLSX、XLS(Excel 97-2003)會按行解析為鍵值對。開啟後,表格檔案會被解析為 HTML 表格。若原始表格超過 12 行,系統會自動按每 12 行拆分為多個 HTML 表格。欲了解更多資訊,請參閱 https://ragflow.io/docs/dataset_configuration#other-format-processing-configuration。`,
- autoKeywords: '自動關鍵字',
+ autoKeywords: '自動關鍵字擷取數',
autoKeywordsTip: `自動為每個文字區塊中提取 N 個關鍵詞,以提升查詢精度。請注意:此功能採用「系統模型設定」中設定的預設聊天模型提取關鍵詞,因此也會產生更多 Token 消耗。此外,你也可以手動更新生成的關鍵詞。詳情請參見 https://ragflow.io/docs/dataset_configuration#content-enhancement-configuration。`,
- autoQuestions: '自動問題',
+ autoQuestions: '自動問題擷取數',
autoQuestionsTip: `為了提高排名分數,請使用「系統模型設定」中定義的聊天模型,為每個知識庫區塊提取 N 個問題。 請注意:這會消耗額外的 token。 結果可在區塊列表中查看和編輯。 問題提取錯誤不會阻止分塊過程; 空結果將被添加到原始區塊。詳情請參見 https://ragflow.io/docs/dataset_configuration#content-enhancement-configuration。 `,
redo: '是否清空已有 {{chunkNum}}個 chunk?',
setMetaData: '設定元數據',
@@ -229,7 +229,7 @@ export default {
languagePlaceholder: '請輸入語言',
permissions: '權限',
embeddingModel: '嵌入模型',
- chunkTokenNumber: '建議文本塊大小',
+ chunkTokenNumber: '推薦分塊大小',
chunkTokenNumberMessage: '塊Token數是必填項',
embeddingModelTip:
'知識庫採用的默認嵌入模型。一旦知識庫內已經產生了文本塊,更換嵌入模型時,系統將隨機抽取若干 chunk 進行兼容性校驗,使用新嵌入模型重新編碼並計算新舊向量的餘弦相似度,樣本平均相似度需 ≥ 0.9 方可切換。否則,必須刪除知識庫內的所有文本塊後才能更改。',
@@ -364,7 +364,7 @@ export default {
'在 RAPTOR 中,數據塊會根據它們的語義相似性進行聚類。閾值參數設定了數據塊被分到同一組所需的最小相似度。閾值越高,每個聚類中的數據塊越少;閾值越低,則每個聚類中的數據塊越多。',
maxClusterTip: '最多可創建的聚類數。',
entityTypes: '實體類型',
- pageRank: '頁面排名',
+ pageRank: 'PageRank 權重',
pageRankTip: `知識庫檢索時,你可以為特定知識庫設置較高的 PageRank 分數,該知識庫中匹配文本塊的混合相似度得分會自動疊加 PageRank 分數,從而提升排序權重。詳見 https://ragflow.io/docs/dataset_configuration#basic-information。`,
tagName: '標籤',
frequency: '頻次',
diff --git a/web/src/locales/zh.ts b/web/src/locales/zh.ts
index 5c9a58fb5b..126dc0a6fd 100644
--- a/web/src/locales/zh.ts
+++ b/web/src/locales/zh.ts
@@ -378,7 +378,7 @@ export default {
fields: '字段',
selectFiles: '已选择 {{count}} 个文件',
fieldNameInvalid: '字段名称只能包含字母或下划线。',
- builtIn: '内置',
+ builtIn: '内置解析模板',
generation: '生成',
toMetadataSettingTip: '在配置中设置自动元数据',
toMetadataSetting: '生成设置',
@@ -457,7 +457,7 @@ export default {
completed: '已完成',
datasetLog: '知识库日志',
created: '创建于',
- learnMore: '内置 pipeline 简介',
+ learnMore: '查看内置解析方法说明',
general: '通用',
chunkMethodTab: '切片方法',
testResults: '测试结果',
@@ -569,9 +569,9 @@ export default {
html4excel: '表格转 HTML',
html4excelTip: `与 General 切片方法配合使用。未开启状态下,表格文件(XLSX、XLS(Excel 97-2003))会按行解析为键值对。开启后,表格文件会被解析为 HTML 表格。若原始表格超过 12 行,系统会自动按每 12 行拆分为多个 HTML 表格。欲了解更多详情,请参阅 https://ragflow.io/docs/dataset_configuration#other-format-processing-configuration。`,
- autoKeywords: '自动关键词提取',
+ autoKeywords: '自动关键词提取数',
autoKeywordsTip: `自动为每个文本块中提取 N 个关键词,用以提升查询精度。请注意:该功能采用在“配置”中指定的索引模型提取关键词,因此也会产生更多 Token 消耗。另外,你也可以手动更新生成的关键词。详情请见 https://ragflow.io/docs/dataset_configuration#content-enhancement-configuration。`,
- autoQuestions: '自动问题提取',
+ autoQuestions: '自动问题提取数',
autoQuestionsTip: `利用在“配置”中指定的索引模型 对知识库的每个文本块提取 N 个问题以提高其排名得分。请注意,开启后将消耗额外的 Token。您可以在块列表中查看、编辑结果。如果自动问题提取发生错误,不会妨碍整个分块过程,只会将空结果添加到原始文本块。详情请见 https://ragflow.io/docs/dataset_configuration#content-enhancement-configuration。`,
autoTags: '自动标签提取',
redo: '是否清空已有 {{chunkNum}}个 Chunk?',
@@ -607,7 +607,7 @@ export default {
randomSeedTip:
'种子是伪随机算法的起点,它确保在不同运行中产生相同的输出,从而保证可重复性。',
datasetDescription: '你的知识库描述。',
- overlappedPercentTip: '相邻两个块之间的重叠百分比',
+ overlappedPercentTip: '相邻两个块之间的重叠比例',
settings: '设置',
autoMetadataTip:
'自动生成元数据。适用于解析新文件。现有文件需要重新解析才能更新(Chunk 将保留)。请注意,配置中指定的索引模型将消耗额外的 Token。',
@@ -674,16 +674,16 @@ export default {
editLinkDataPipeline: '编辑 pipeline',
linkPipelineSetTip: '管理与此知识库的数据管道链接',
default: '默认',
- dataPipeline: '切换或配置 ingestion pipeline。',
+ dataPipeline: '选择或切换解析方式',
linkDataPipeline: '关联 pipeline',
enableAutoGenerate: '是否启用自动生成',
teamPlaceholder: '请选择团队',
dataFlowPlaceholder: '请选择 pipeline',
buildItFromScratch: '去 Scratch 构建',
dataFlow: 'pipeline',
- parseType: '解析方法',
- manualSetup: '选择pipeline',
- builtIn: '内置',
+ parseType: '解析方式',
+ manualSetup: '自定义Ingestion pipeline',
+ builtIn: '内置解析模板',
titleDescription: '在这里更新您的知识库配置,特别是大语言模型和提示词。',
name: '知识库名称',
photo: '知识库图片',
@@ -694,7 +694,7 @@ export default {
languagePlaceholder: '请输入语言',
permissions: '权限',
embeddingModel: 'Embedding 模型',
- chunkTokenNumber: '建议文本块大小',
+ chunkTokenNumber: '推荐分块大小',
chunkTokenNumberMessage: '块 Token 数是必填项',
embeddingModelTip:
'知识库采用的默认 Embedding 模型。一旦知识库内已经产生了文本块,更换 Embedding 模型时,系统将随机抽取若干 Chunk 进行兼容性校验,使用新 Embedding 模型重新编码并计算新旧向量的余弦相似度,样本平均相似度需 ≥ 0.9 方可切换。否则,必须删除知识库内的所有文本块后才能更改。',
@@ -857,7 +857,7 @@ export default {
compilationTemplateRequired: '请选择算子',
createTemplate: '创建模板',
scopeFile: '文件',
- pageRank: '页面排名',
+ pageRank: 'PageRank 权重',
pageRankTip: `知识库检索时,你可以为特定知识库设置较高的 PageRank 分数,该知识库中匹配文本块的混合相似度得分会自动叠加 PageRank 分数,从而提升排序权重。详见 https://ragflow.io/docs/dataset_configuration#basic-information。`,
tagName: '标签',
tagMessage: '请选择标签',
@@ -2207,17 +2207,19 @@ NER:使用 spaCy NER 和基于规则的关键词提取来抽取 Entities 和 R
tagsPlaceholder: '输入标签后按回车',
tagSuggestionsLabel: '现有标签',
removeTagAriaLabel: '删除 {{tag}}',
- includeHeadingContent: '分离上级标题正文',
+ includeHeadingContent: '分离上级标题内容',
includeHeadingContentTip:
'启用后,每个分块仅保留标题路径和自身内容,与上级标题紧挨着的内容将作为一个独立的块保留。',
- rootAsHeading: '将首个切片设为 H0 标题',
+ chunkTokenCap: '分块 Token 上限',
+ chunkTokenCapTip:'每个分块允许的最大 Token 数。超过上限的分块将按照句子边界(中英文句号、感叹号、问号和换行符)重新拆分。设为 0 可禁用此上限。',
+ rootAsHeading: '将首个分块设为全局上下文',
rootAsHeadingTip:
'将首个切片设为全局标题,以确保整个文档层级结构中拥有一致的上下文信息。该功能尤其适用于首段包含关键信息的简历。',
- hierarchyTip: `构建标题树并生成独立的块,每个块携带其完整的祖先标题路径(例如 第1部分 › 第3章 › 第2节 + 正文)。\n
+ hierarchyTip: `构建标题层级树并生成独立分块,每个分块均包含完整的上级标题路径(例如 第1部分 › 第3章 › 第2节 + 正文)。\n
适用场景:具有独立的、结构性重要章节的文档——如法律条款、法规、合同和技术规范——其中每个块即使没有上下文也能通过其结构位置来识别。`,
- groupTip: `在选定的标题级别将文档扁平分割,并自动合并相邻的小节以保持内容连续性。不注入父标题路径。\n
-适用场景:具有流动性的、内容相关联的文档——如书籍、手册、报告和文章——其中相邻段落应保持在一起以维持叙述连贯性。`,
- enableMultiColumn: '启用多栏',
+ groupTip: `在选定的标题层级对文档进行扁平分块,并合并相邻的小节,以保持语义连贯性。分块中不包含上级标题路径。\n
+适用场景:内容连续、上下文关联较强的文档,例如书籍、手册、报告和文章。这类文档通常需要保留相邻段落,以维持叙述连贯性。`,
+ enableMultiColumn: '多栏布局识别',
enableMultiColumnTip:
'检测并解析多栏页面布局以保持正确的阅读顺序。对于具有双栏或报纸式布局的 PDF 或文档,请开启此功能。',
removeToc: '移除原始目录',
@@ -2334,7 +2336,7 @@ NER:使用 spaCy NER 和基于规则的关键词提取来抽取 Entities 和 R
communication: '通信',
developer: '开发者',
typeCommandORsearch: '输入命令或或搜索...',
- builtIn: '内置',
+ builtIn: '内置解析模板',
goto: '异常分支',
comment: '默认值',
ExceptionDefaultValue: '异常处理默认值',
@@ -3066,7 +3068,7 @@ NER:使用 spaCy NER 和基于规则的关键词提取来抽取 Entities 和 R
// group: '聚合',
// hierarchy: '层次结构',
regularExpressions: '正则表达式',
- overlappedPercent: '重叠百分比(%)',
+ overlappedPercent: '重叠比例(%)',
searchMethod: '搜索方法',
searchMethodTip: `决定该知识库启用的搜索方式,可选择全文、向量,或两者兼有。
Tokenizer 会根据所选方式将内容存储为对应的数据结构。`,
@@ -3080,12 +3082,12 @@ Tokenizer 会根据所选方式将内容存储为对应的数据结构。`,
viewResult: '查看结果',
running: '运行中',
summary: '增强上下文',
- keywords: '关键词',
- questions: '问题',
+ keywords: '自动关键词',
+ questions: '自动问题',
metadata: '元数据',
fieldName: '结果目的地',
enableSummary: '启用增强上下文',
- useBuiltInTemplate: '使用内置模板',
+ useBuiltInTemplate: '使用内置解析模板',
prompts: {
system: {
keywords: `角色