diff --git a/web/src/components/delimiter.tsx b/web/src/components/delimiter.tsx index 5605763de..25e3128bd 100644 --- a/web/src/components/delimiter.tsx +++ b/web/src/components/delimiter.tsx @@ -25,6 +25,7 @@ const Delimiter = () => { label={t('knowledgeDetails.delimiter')} initialValue={`\\n!?;。;!?`} rules={[{ required: true }]} + tooltip={t('knowledgeDetails.delimiterTip')} > diff --git a/web/src/locales/en.ts b/web/src/locales/en.ts index aa4b801e9..ce0525dbe 100644 --- a/web/src/locales/en.ts +++ b/web/src/locales/en.ts @@ -157,6 +157,8 @@ export default { topK: 'Top-K', topKTip: `K chunks will be fed into rerank models.`, delimiter: `Delimiter`, + delimiterTip: + 'Supports multiple characters as separators, and the multiple character separators are wrapped with `. For example, if it is configured like this: \n`##`; then the text will be separated by line breaks, two #s and a semicolon, and then assembled according to the size of the "token number".', html4excel: 'Excel to HTML', html4excelTip: `When enabled, the spreadsheet will be parsed into HTML tables; otherwise, it will be parsed into key-value pairs by row.`, autoKeywords: 'Auto-keyword', diff --git a/web/src/locales/zh-traditional.ts b/web/src/locales/zh-traditional.ts index 518ba559b..2753e781e 100644 --- a/web/src/locales/zh-traditional.ts +++ b/web/src/locales/zh-traditional.ts @@ -153,6 +153,8 @@ export default { topK: 'Top-K', topKTip: `K塊將被送入Rerank型號。`, delimiter: `分段標識符`, + delimiterTip: + '支援多字元作為分隔符,多字元分隔符用`包裹。如配置成這樣:\n`##`;那麼就會用換行,兩個#以及分號先對文字進行分割,然後按照「 token number」大小進行拼裝。', html4excel: '表格轉HTML', html4excelTip: `Excel 是否會被解析為 HTML 表格。如果為 FALSE,Excel 中的每一行都會形成一個區塊。`, autoKeywords: '自動關鍵字', diff --git a/web/src/locales/zh.ts b/web/src/locales/zh.ts index 0aeb2541c..8a3fe97bd 100644 --- a/web/src/locales/zh.ts +++ b/web/src/locales/zh.ts @@ -154,6 +154,8 @@ export default { topK: 'Top-K', topKTip: `K块将被送入Rerank型号。`, delimiter: `分段标识符`, + delimiterTip: + '支持多字符作为分隔符,多字符分隔符用`包裹。如配置成这样:\n`##`;那么就会用换行,两个#以及分号先对文本进行分割,然后按照“ token number”大小进行拼装。', html4excel: '表格转HTML', html4excelTip: `Excel 是否将被解析为 HTML 表。如果为 FALSE,Excel 中的每一行都将形成一个块。`, autoKeywords: '自动关键词',