balibabu commited on
Commit
bec7e87
·
1 Parent(s): efb484c

Feat: Add tooltip to delimiter filed #1909 (#3758)

Browse files

### What problem does this PR solve?

Feat: Add tooltip to delimiter filed #1909

### Type of change


- [x] New Feature (non-breaking change which adds functionality)

web/src/components/delimiter.tsx CHANGED
@@ -25,6 +25,7 @@ const Delimiter = () => {
25
  label={t('knowledgeDetails.delimiter')}
26
  initialValue={`\\n!?;。;!?`}
27
  rules={[{ required: true }]}
 
28
  >
29
  <DelimiterInput />
30
  </Form.Item>
 
25
  label={t('knowledgeDetails.delimiter')}
26
  initialValue={`\\n!?;。;!?`}
27
  rules={[{ required: true }]}
28
+ tooltip={t('knowledgeDetails.delimiterTip')}
29
  >
30
  <DelimiterInput />
31
  </Form.Item>
web/src/locales/en.ts CHANGED
@@ -157,6 +157,8 @@ export default {
157
  topK: 'Top-K',
158
  topKTip: `K chunks will be fed into rerank models.`,
159
  delimiter: `Delimiter`,
 
 
160
  html4excel: 'Excel to HTML',
161
  html4excelTip: `When enabled, the spreadsheet will be parsed into HTML tables; otherwise, it will be parsed into key-value pairs by row.`,
162
  autoKeywords: 'Auto-keyword',
 
157
  topK: 'Top-K',
158
  topKTip: `K chunks will be fed into rerank models.`,
159
  delimiter: `Delimiter`,
160
+ delimiterTip:
161
+ '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".',
162
  html4excel: 'Excel to HTML',
163
  html4excelTip: `When enabled, the spreadsheet will be parsed into HTML tables; otherwise, it will be parsed into key-value pairs by row.`,
164
  autoKeywords: 'Auto-keyword',
web/src/locales/zh-traditional.ts CHANGED
@@ -153,6 +153,8 @@ export default {
153
  topK: 'Top-K',
154
  topKTip: `K塊將被送入Rerank型號。`,
155
  delimiter: `分段標識符`,
 
 
156
  html4excel: '表格轉HTML',
157
  html4excelTip: `Excel 是否會被解析為 HTML 表格。如果為 FALSE,Excel 中的每一行都會形成一個區塊。`,
158
  autoKeywords: '自動關鍵字',
 
153
  topK: 'Top-K',
154
  topKTip: `K塊將被送入Rerank型號。`,
155
  delimiter: `分段標識符`,
156
+ delimiterTip:
157
+ '支援多字元作為分隔符,多字元分隔符用`包裹。如配置成這樣:\n`##`;那麼就會用換行,兩個#以及分號先對文字進行分割,然後按照「 token number」大小進行拼裝。',
158
  html4excel: '表格轉HTML',
159
  html4excelTip: `Excel 是否會被解析為 HTML 表格。如果為 FALSE,Excel 中的每一行都會形成一個區塊。`,
160
  autoKeywords: '自動關鍵字',
web/src/locales/zh.ts CHANGED
@@ -154,6 +154,8 @@ export default {
154
  topK: 'Top-K',
155
  topKTip: `K块将被送入Rerank型号。`,
156
  delimiter: `分段标识符`,
 
 
157
  html4excel: '表格转HTML',
158
  html4excelTip: `Excel 是否将被解析为 HTML 表。如果为 FALSE,Excel 中的每一行都将形成一个块。`,
159
  autoKeywords: '自动关键词',
 
154
  topK: 'Top-K',
155
  topKTip: `K块将被送入Rerank型号。`,
156
  delimiter: `分段标识符`,
157
+ delimiterTip:
158
+ '支持多字符作为分隔符,多字符分隔符用`包裹。如配置成这样:\n`##`;那么就会用换行,两个#以及分号先对文本进行分割,然后按照“ token number”大小进行拼装。',
159
  html4excel: '表格转HTML',
160
  html4excelTip: `Excel 是否将被解析为 HTML 表。如果为 FALSE,Excel 中的每一行都将形成一个块。`,
161
  autoKeywords: '自动关键词',