浏览代码

Chore: change dataset's i18n to knowledge (#1629)

Joel 1 年之前
父节点
当前提交
7bbfac5dba

+ 62 - 62
web/app/(commonLayout)/datasets/template/template.en.mdx

@@ -1,7 +1,7 @@
 import { CodeGroup } from '@/app/components/develop/code.tsx'
 import { CodeGroup } from '@/app/components/develop/code.tsx'
 import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from '@/app/components/develop/md.tsx'
 import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from '@/app/components/develop/md.tsx'
 
 
-# Dataset API
+# Knowledge API
 
 
 <div>
 <div>
   ### Authentication
   ### Authentication
@@ -30,12 +30,12 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
 />
 />
 <Row>
 <Row>
   <Col>
   <Col>
-    This api is based on an existing dataset and creates a new document through text based on this dataset.
+    This api is based on an existing Knowledge and creates a new document through text based on this Knowledge.
 
 
     ### Params
     ### Params
     <Properties>
     <Properties>
       <Property name='dataset_id' type='string' key='dataset_id'>
       <Property name='dataset_id' type='string' key='dataset_id'>
-        Dataset ID
+        Knowledge ID
       </Property>
       </Property>
     </Properties>
     </Properties>
 
 
@@ -133,12 +133,12 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
 />
 />
 <Row>
 <Row>
   <Col>
   <Col>
-    This api is based on an existing dataset and creates a new document through a file based on this dataset.
+    This api is based on an existing Knowledge and creates a new document through a file based on this Knowledge.
 
 
     ### Params
     ### Params
     <Properties>
     <Properties>
       <Property name='dataset_id' type='string' key='dataset_id'>
       <Property name='dataset_id' type='string' key='dataset_id'>
-        Dataset ID
+        Knowledge ID
       </Property>
       </Property>
     </Properties>
     </Properties>
 
 
@@ -228,7 +228,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
 <Heading
 <Heading
   url='/datasets'
   url='/datasets'
   method='POST'
   method='POST'
-  title='Create an empty dataset'
+  title='Create an empty Knowledge'
   name='#create_empty_dataset'
   name='#create_empty_dataset'
 />
 />
 <Row>
 <Row>
@@ -236,7 +236,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
     ### Request Body
     ### Request Body
     <Properties>
     <Properties>
       <Property name='name' type='string' key='name'>
       <Property name='name' type='string' key='name'>
-        Dataset name
+        Knowledge name
       </Property>
       </Property>
     </Properties>
     </Properties>
   </Col>
   </Col>
@@ -287,7 +287,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
 <Heading
 <Heading
   url='/datasets'
   url='/datasets'
   method='GET'
   method='GET'
-  title='Dataset list'
+  title='Knowledge list'
   name='#dataset_list'
   name='#dataset_list'
 />
 />
 <Row>
 <Row>
@@ -355,12 +355,12 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
 />
 />
 <Row>
 <Row>
   <Col>
   <Col>
-    This api is based on an existing dataset and updates the document through text based on this dataset.
+    This api is based on an existing Knowledge and updates the document through text based on this Knowledge.
 
 
     ### Params
     ### Params
     <Properties>
     <Properties>
       <Property name='dataset_id' type='string' key='dataset_id'>
       <Property name='dataset_id' type='string' key='dataset_id'>
-        Dataset ID
+        Knowledge ID
       </Property>
       </Property>
       <Property name='document_id' type='string' key='document_id'>
       <Property name='document_id' type='string' key='document_id'>
         Document ID
         Document ID
@@ -452,12 +452,12 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
 />
 />
 <Row>
 <Row>
   <Col>
   <Col>
-    This api is based on an existing dataset, and updates documents through files based on this dataset
+    This api is based on an existing Knowledge, and updates documents through files based on this Knowledge
 
 
     ### Params
     ### Params
     <Properties>
     <Properties>
       <Property name='dataset_id' type='string' key='dataset_id'>
       <Property name='dataset_id' type='string' key='dataset_id'>
-        Dataset ID
+        Knowledge ID
       </Property>
       </Property>
       <Property name='document_id' type='string' key='document_id'>
       <Property name='document_id' type='string' key='document_id'>
         Document ID
         Document ID
@@ -549,7 +549,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
     ### Params
     ### Params
     <Properties>
     <Properties>
       <Property name='dataset_id' type='string' key='dataset_id'>
       <Property name='dataset_id' type='string' key='dataset_id'>
-        Dataset ID
+        Knowledge ID
       </Property>
       </Property>
       <Property name='batch' type='string' key='batch'>
       <Property name='batch' type='string' key='batch'>
         Batch number of uploaded documents
         Batch number of uploaded documents
@@ -604,7 +604,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
     ### Params
     ### Params
     <Properties>
     <Properties>
       <Property name='dataset_id' type='string' key='dataset_id'>
       <Property name='dataset_id' type='string' key='dataset_id'>
-        Dataset ID
+        Knowledge ID
       </Property>
       </Property>
       <Property name='document_id' type='string' key='document_id'>
       <Property name='document_id' type='string' key='document_id'>
         Document ID
         Document ID
@@ -638,7 +638,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
 <Heading
 <Heading
   url='/datasets/{dataset_id}/documents'
   url='/datasets/{dataset_id}/documents'
   method='GET'
   method='GET'
-  title='Dataset document list'
+  title='Knowledge document list'
   name='#dataset_document_list'
   name='#dataset_document_list'
 />
 />
 <Row>
 <Row>
@@ -646,7 +646,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
     ### Params
     ### Params
     <Properties>
     <Properties>
       <Property name='dataset_id' type='string' key='dataset_id'>
       <Property name='dataset_id' type='string' key='dataset_id'>
-        Dataset ID
+        Knowledge ID
       </Property>
       </Property>
     </Properties>
     </Properties>
 
 
@@ -721,7 +721,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
     ### Params
     ### Params
     <Properties>
     <Properties>
       <Property name='dataset_id' type='string' key='dataset_id'>
       <Property name='dataset_id' type='string' key='dataset_id'>
-        Dataset ID
+        Knowledge ID
       </Property>
       </Property>
       <Property name='document_id' type='string' key='document_id'>
       <Property name='document_id' type='string' key='document_id'>
         Document ID
         Document ID
@@ -732,7 +732,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
     <Properties>
     <Properties>
       <Property name='segments' type='object list' key='segments'>
       <Property name='segments' type='object list' key='segments'>
         - <code>content</code> (text) Text content/question content, required
         - <code>content</code> (text) Text content/question content, required
-        - <code>answer</code> (text) Answer content, if the mode of the data set is qa mode, pass the value(optional)
+        - <code>answer</code> (text) Answer content, if the mode of the Knowledge is qa mode, pass the value(optional)
         - <code>keywords</code> (list) Keywords(optional)
         - <code>keywords</code> (list) Keywords(optional)
       </Property>
       </Property>
     </Properties>
     </Properties>
@@ -807,7 +807,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
     ### Path
     ### Path
     <Properties>
     <Properties>
       <Property name='dataset_id' type='string' key='dataset_id'>
       <Property name='dataset_id' type='string' key='dataset_id'>
-        Dataset ID
+        Knowledge ID
       </Property>
       </Property>
       <Property name='document_id' type='string' key='document_id'>
       <Property name='document_id' type='string' key='document_id'>
         Document ID
         Document ID
@@ -885,7 +885,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
     ### Path
     ### Path
     <Properties>
     <Properties>
       <Property name='dataset_id' type='string' key='dataset_id'>
       <Property name='dataset_id' type='string' key='dataset_id'>
-        Dataset ID
+        Knowledge ID
       </Property>
       </Property>
       <Property name='segment_id' type='string' key='segment_id'>
       <Property name='segment_id' type='string' key='segment_id'>
         Document Segment ID
         Document Segment ID
@@ -928,7 +928,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
     ### POST
     ### POST
     <Properties>
     <Properties>
       <Property name='dataset_id' type='string' key='dataset_id'>
       <Property name='dataset_id' type='string' key='dataset_id'>
-        Dataset ID
+        Knowledge ID
       </Property>
       </Property>
       <Property name='segment_id' type='string' key='segment_id'>
       <Property name='segment_id' type='string' key='segment_id'>
         Document Segment ID
         Document Segment ID
@@ -939,7 +939,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
     <Properties>
     <Properties>
       <Property name='segments' type='object list' key='segments'>
       <Property name='segments' type='object list' key='segments'>
         - <code>content</code> (text) text content/question content,required
         - <code>content</code> (text) text content/question content,required
-        - <code>answer</code> (text) Answer content, not required, passed if the data set is in qa mode
+        - <code>answer</code> (text) Answer content, not required, passed if the Knowledge is in qa mode
         - <code>keywords</code> (list) keyword, not required
         - <code>keywords</code> (list) keyword, not required
         - <code>enabled</code> (bool) false/true, not required
         - <code>enabled</code> (bool) false/true, not required
       </Property>
       </Property>
@@ -1036,72 +1036,72 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
 <table className="max-w-auto border-collapse border border-slate-400" style={{ maxWidth: 'none', width: 'auto' }}>
 <table className="max-w-auto border-collapse border border-slate-400" style={{ maxWidth: 'none', width: 'auto' }}>
   <thead style={{ background: '#f9fafc' }}>
   <thead style={{ background: '#f9fafc' }}>
     <tr>
     <tr>
-      <th class="p-2 border border-slate-300">code</th>
-      <th class="p-2 border border-slate-300">status</th>
-      <th class="p-2 border border-slate-300">message</th>
+      <th className="p-2 border border-slate-300">code</th>
+      <th className="p-2 border border-slate-300">status</th>
+      <th className="p-2 border border-slate-300">message</th>
     </tr>
     </tr>
   </thead>
   </thead>
   <tbody>
   <tbody>
     <tr>
     <tr>
-      <td class="p-2 border border-slate-300">no_file_uploaded</td>
-      <td class="p-2 border border-slate-300">400</td>
-      <td class="p-2 border border-slate-300">Please upload your file.</td>
+      <td className="p-2 border border-slate-300">no_file_uploaded</td>
+      <td className="p-2 border border-slate-300">400</td>
+      <td className="p-2 border border-slate-300">Please upload your file.</td>
     </tr>
     </tr>
     <tr>
     <tr>
-      <td class="p-2 border border-slate-300">too_many_files</td>
-      <td class="p-2 border border-slate-300">400</td>
-      <td class="p-2 border border-slate-300">Only one file is allowed.</td>
+      <td className="p-2 border border-slate-300">too_many_files</td>
+      <td className="p-2 border border-slate-300">400</td>
+      <td className="p-2 border border-slate-300">Only one file is allowed.</td>
     </tr>
     </tr>
     <tr>
     <tr>
-      <td class="p-2 border border-slate-300">file_too_large</td>
-      <td class="p-2 border border-slate-300">413</td>
-      <td class="p-2 border border-slate-300">File size exceeded.</td>
+      <td className="p-2 border border-slate-300">file_too_large</td>
+      <td className="p-2 border border-slate-300">413</td>
+      <td className="p-2 border border-slate-300">File size exceeded.</td>
     </tr>
     </tr>
     <tr>
     <tr>
-      <td class="p-2 border border-slate-300">unsupported_file_type</td>
-      <td class="p-2 border border-slate-300">415</td>
-      <td class="p-2 border border-slate-300">File type not allowed.</td>
+      <td className="p-2 border border-slate-300">unsupported_file_type</td>
+      <td className="p-2 border border-slate-300">415</td>
+      <td className="p-2 border border-slate-300">File type not allowed.</td>
     </tr>
     </tr>
     <tr>
     <tr>
-      <td class="p-2 border border-slate-300">high_quality_dataset_only</td>
-      <td class="p-2 border border-slate-300">400</td>
-      <td class="p-2 border border-slate-300">Current operation only supports 'high-quality' datasets.</td>
+      <td className="p-2 border border-slate-300">high_quality_dataset_only</td>
+      <td className="p-2 border border-slate-300">400</td>
+      <td className="p-2 border border-slate-300">Current operation only supports 'high-quality' datasets.</td>
     </tr>
     </tr>
     <tr>
     <tr>
-      <td class="p-2 border border-slate-300">dataset_not_initialized</td>
-      <td class="p-2 border border-slate-300">400</td>
-      <td class="p-2 border border-slate-300">The dataset is still being initialized or indexing. Please wait a moment.</td>
+      <td className="p-2 border border-slate-300">dataset_not_initialized</td>
+      <td className="p-2 border border-slate-300">400</td>
+      <td className="p-2 border border-slate-300">The dataset is still being initialized or indexing. Please wait a moment.</td>
     </tr>
     </tr>
     <tr>
     <tr>
-      <td class="p-2 border border-slate-300">archived_document_immutable</td>
-      <td class="p-2 border border-slate-300">403</td>
-      <td class="p-2 border border-slate-300">The archived document is not editable.</td>
+      <td className="p-2 border border-slate-300">archived_document_immutable</td>
+      <td className="p-2 border border-slate-300">403</td>
+      <td className="p-2 border border-slate-300">The archived document is not editable.</td>
     </tr>
     </tr>
     <tr>
     <tr>
-      <td class="p-2 border border-slate-300">dataset_name_duplicate</td>
-      <td class="p-2 border border-slate-300">409</td>
-      <td class="p-2 border border-slate-300">The dataset name already exists. Please modify your dataset name.</td>
+      <td className="p-2 border border-slate-300">dataset_name_duplicate</td>
+      <td className="p-2 border border-slate-300">409</td>
+      <td className="p-2 border border-slate-300">The dataset name already exists. Please modify your dataset name.</td>
     </tr>
     </tr>
     <tr>
     <tr>
-      <td class="p-2 border border-slate-300">invalid_action</td>
-      <td class="p-2 border border-slate-300">400</td>
-      <td class="p-2 border border-slate-300">Invalid action.</td>
+      <td className="p-2 border border-slate-300">invalid_action</td>
+      <td className="p-2 border border-slate-300">400</td>
+      <td className="p-2 border border-slate-300">Invalid action.</td>
     </tr>
     </tr>
     <tr>
     <tr>
-      <td class="p-2 border border-slate-300">document_already_finished</td>
-      <td class="p-2 border border-slate-300">400</td>
-      <td class="p-2 border border-slate-300">The document has been processed. Please refresh the page or go to the document details.</td>
+      <td className="p-2 border border-slate-300">document_already_finished</td>
+      <td className="p-2 border border-slate-300">400</td>
+      <td className="p-2 border border-slate-300">The document has been processed. Please refresh the page or go to the document details.</td>
     </tr>
     </tr>
     <tr>
     <tr>
-      <td class="p-2 border border-slate-300">document_indexing</td>
-      <td class="p-2 border border-slate-300">400</td>
-      <td class="p-2 border border-slate-300">The document is being processed and cannot be edited.</td>
+      <td className="p-2 border border-slate-300">document_indexing</td>
+      <td className="p-2 border border-slate-300">400</td>
+      <td className="p-2 border border-slate-300">The document is being processed and cannot be edited.</td>
     </tr>
     </tr>
     <tr>
     <tr>
-      <td class="p-2 border border-slate-300">invalid_metadata</td>
-      <td class="p-2 border border-slate-300">400</td>
-      <td class="p-2 border border-slate-300">The metadata content is incorrect. Please check and verify.</td>
+      <td className="p-2 border border-slate-300">invalid_metadata</td>
+      <td className="p-2 border border-slate-300">400</td>
+      <td className="p-2 border border-slate-300">The metadata content is incorrect. Please check and verify.</td>
     </tr>
     </tr>
   </tbody>
   </tbody>
 </table>
 </table>
-<div class="pb-4" />
+<div className="pb-4" />

+ 63 - 63
web/app/(commonLayout)/datasets/template/template.zh.mdx

@@ -1,7 +1,7 @@
 import { CodeGroup } from '@/app/components/develop/code.tsx'
 import { CodeGroup } from '@/app/components/develop/code.tsx'
 import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from '@/app/components/develop/md.tsx'
 import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from '@/app/components/develop/md.tsx'
 
 
-# 数据集 API
+# 知识库 API
 
 
 <div>
 <div>
   ### 鉴权
   ### 鉴权
@@ -30,12 +30,12 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
 />
 />
 <Row>
 <Row>
   <Col>
   <Col>
-    此接口基于已存在数据集,在此数据集的基础上通过文本创建新的文档
+    此接口基于已存在知识库,在此知识库的基础上通过文本创建新的文档
 
 
     ### Path
     ### Path
     <Properties>
     <Properties>
       <Property name='dataset_id' type='string' key='dataset_id'>
       <Property name='dataset_id' type='string' key='dataset_id'>
-        数据集 ID
+        知识库 ID
       </Property>
       </Property>
     </Properties>
     </Properties>
 
 
@@ -133,12 +133,12 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
 />
 />
 <Row>
 <Row>
   <Col>
   <Col>
-    此接口基于已存在数据集,在此数据集的基础上通过文件创建新的文档
+    此接口基于已存在知识库,在此知识库的基础上通过文件创建新的文档
 
 
     ### Path
     ### Path
     <Properties>
     <Properties>
       <Property name='dataset_id' type='string' key='dataset_id'>
       <Property name='dataset_id' type='string' key='dataset_id'>
-        数据集 ID
+        知识库 ID
       </Property>
       </Property>
     </Properties>
     </Properties>
 
 
@@ -228,7 +228,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
 <Heading
 <Heading
   url='/datasets'
   url='/datasets'
   method='POST'
   method='POST'
-  title='创建空数据集'
+  title='创建空知识库'
   name='#create_empty_dataset'
   name='#create_empty_dataset'
 />
 />
 <Row>
 <Row>
@@ -236,7 +236,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
     ### Request Body
     ### Request Body
     <Properties>
     <Properties>
       <Property name='name' type='string' key='name'>
       <Property name='name' type='string' key='name'>
-        数据集名称
+        知识库名称
       </Property>
       </Property>
     </Properties>
     </Properties>
   </Col>
   </Col>
@@ -287,7 +287,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
 <Heading
 <Heading
   url='/datasets'
   url='/datasets'
   method='GET'
   method='GET'
-  title='数据集列表'
+  title='知识库列表'
   name='#dataset_list'
   name='#dataset_list'
 />
 />
 <Row>
 <Row>
@@ -320,7 +320,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
       "data": [
       "data": [
         {
         {
           "id": "",
           "id": "",
-          "name": "数据集名称",
+          "name": "知识库名称",
           "description": "描述信息",
           "description": "描述信息",
           "permission": "only_me",
           "permission": "only_me",
           "data_source_type": "upload_file",
           "data_source_type": "upload_file",
@@ -355,12 +355,12 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
 />
 />
 <Row>
 <Row>
   <Col>
   <Col>
-    此接口基于已存在数据集,在此数据集的基础上通过文本更新文档
+    此接口基于已存在知识库,在此知识库的基础上通过文本更新文档
 
 
     ### Path
     ### Path
     <Properties>
     <Properties>
       <Property name='dataset_id' type='string' key='dataset_id'>
       <Property name='dataset_id' type='string' key='dataset_id'>
-        数据集 ID
+        知识库 ID
       </Property>
       </Property>
       <Property name='document_id' type='string' key='document_id'>
       <Property name='document_id' type='string' key='document_id'>
         文档 ID
         文档 ID
@@ -452,12 +452,12 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
 />
 />
 <Row>
 <Row>
   <Col>
   <Col>
-    此接口基于已存在数据集,在此数据集的基础上通过文件更新文档的操作。
+    此接口基于已存在知识库,在此知识库的基础上通过文件更新文档的操作。
 
 
     ### Path
     ### Path
     <Properties>
     <Properties>
       <Property name='dataset_id' type='string' key='dataset_id'>
       <Property name='dataset_id' type='string' key='dataset_id'>
-        数据集 ID
+        知识库 ID
       </Property>
       </Property>
       <Property name='document_id' type='string' key='document_id'>
       <Property name='document_id' type='string' key='document_id'>
         文档 ID
         文档 ID
@@ -549,7 +549,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
     ### Path
     ### Path
     <Properties>
     <Properties>
       <Property name='dataset_id' type='string' key='dataset_id'>
       <Property name='dataset_id' type='string' key='dataset_id'>
-        数据集 ID
+        知识库 ID
       </Property>
       </Property>
       <Property name='batch' type='string' key='batch'>
       <Property name='batch' type='string' key='batch'>
         上传文档的批次号
         上传文档的批次号
@@ -604,7 +604,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
     ### Path
     ### Path
     <Properties>
     <Properties>
       <Property name='dataset_id' type='string' key='dataset_id'>
       <Property name='dataset_id' type='string' key='dataset_id'>
-        数据集 ID
+        知识库 ID
       </Property>
       </Property>
       <Property name='document_id' type='string' key='document_id'>
       <Property name='document_id' type='string' key='document_id'>
         文档 ID
         文档 ID
@@ -638,7 +638,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
 <Heading
 <Heading
   url='/datasets/{dataset_id}/documents'
   url='/datasets/{dataset_id}/documents'
   method='GET'
   method='GET'
-  title='数据集文档列表'
+  title='知识库文档列表'
   name='#dataset_document_list'
   name='#dataset_document_list'
 />
 />
 <Row>
 <Row>
@@ -646,7 +646,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
     ### Path
     ### Path
     <Properties>
     <Properties>
       <Property name='dataset_id' type='string' key='dataset_id'>
       <Property name='dataset_id' type='string' key='dataset_id'>
-        数据集 ID
+        知识库 ID
       </Property>
       </Property>
     </Properties>
     </Properties>
 
 
@@ -721,7 +721,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
     ### Path
     ### Path
     <Properties>
     <Properties>
       <Property name='dataset_id' type='string' key='dataset_id'>
       <Property name='dataset_id' type='string' key='dataset_id'>
-        数据集 ID
+        知识库 ID
       </Property>
       </Property>
       <Property name='document_id' type='string' key='document_id'>
       <Property name='document_id' type='string' key='document_id'>
         文档 ID
         文档 ID
@@ -732,7 +732,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
     <Properties>
     <Properties>
       <Property name='segments' type='object list' key='segments'>
       <Property name='segments' type='object list' key='segments'>
         - <code>content</code> (text) 文本内容/问题内容,必填
         - <code>content</code> (text) 文本内容/问题内容,必填
-        - <code>answer</code> (text) 答案内容,非必填,如果数据集的模式为qa模式则传值
+        - <code>answer</code> (text) 答案内容,非必填,如果知识库的模式为qa模式则传值
         - <code>keywords</code> (list) 关键字,非必填
         - <code>keywords</code> (list) 关键字,非必填
       </Property>
       </Property>
     </Properties>
     </Properties>
@@ -807,7 +807,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
     ### Path
     ### Path
     <Properties>
     <Properties>
       <Property name='dataset_id' type='string' key='dataset_id'>
       <Property name='dataset_id' type='string' key='dataset_id'>
-        数据集 ID
+        知识库 ID
       </Property>
       </Property>
       <Property name='document_id' type='string' key='document_id'>
       <Property name='document_id' type='string' key='document_id'>
         文档 ID
         文档 ID
@@ -885,7 +885,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
     ### Path
     ### Path
     <Properties>
     <Properties>
       <Property name='dataset_id' type='string' key='dataset_id'>
       <Property name='dataset_id' type='string' key='dataset_id'>
-        数据集 ID
+        知识库 ID
       </Property>
       </Property>
       <Property name='segment_id' type='string' key='segment_id'>
       <Property name='segment_id' type='string' key='segment_id'>
         文档分段ID
         文档分段ID
@@ -928,7 +928,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
     ### POST
     ### POST
     <Properties>
     <Properties>
       <Property name='dataset_id' type='string' key='dataset_id'>
       <Property name='dataset_id' type='string' key='dataset_id'>
-        数据集 ID
+        知识库 ID
       </Property>
       </Property>
       <Property name='segment_id' type='string' key='segment_id'>
       <Property name='segment_id' type='string' key='segment_id'>
         文档分段ID
         文档分段ID
@@ -939,7 +939,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
     <Properties>
     <Properties>
       <Property name='segments' type='object list' key='segments'>
       <Property name='segments' type='object list' key='segments'>
         - <code>content</code> (text) 文本内容/问题内容,必填
         - <code>content</code> (text) 文本内容/问题内容,必填
-        - <code>answer</code> (text) 答案内容,非必填,如果数据集的模式为qa模式则传值
+        - <code>answer</code> (text) 答案内容,非必填,如果知识库的模式为qa模式则传值
         - <code>keywords</code> (list) 关键字,非必填
         - <code>keywords</code> (list) 关键字,非必填
         - <code>enabled</code> (bool) false/true,非必填
         - <code>enabled</code> (bool) false/true,非必填
       </Property>
       </Property>
@@ -1037,72 +1037,72 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
 <table className="max-w-auto border-collapse border border-slate-400" style={{ maxWidth: 'none', width: 'auto' }}>
 <table className="max-w-auto border-collapse border border-slate-400" style={{ maxWidth: 'none', width: 'auto' }}>
   <thead style={{ background: '#f9fafc' }}>
   <thead style={{ background: '#f9fafc' }}>
     <tr>
     <tr>
-      <th class="p-2 border border-slate-300">code</th>
-      <th class="p-2 border border-slate-300">status</th>
-      <th class="p-2 border border-slate-300">message</th>
+      <th className="p-2 border border-slate-300">code</th>
+      <th className="p-2 border border-slate-300">status</th>
+      <th className="p-2 border border-slate-300">message</th>
     </tr>
     </tr>
   </thead>
   </thead>
   <tbody>
   <tbody>
     <tr>
     <tr>
-      <td class="p-2 border border-slate-300">no_file_uploaded</td>
-      <td class="p-2 border border-slate-300">400</td>
-      <td class="p-2 border border-slate-300">Please upload your file.</td>
+      <td className="p-2 border border-slate-300">no_file_uploaded</td>
+      <td className="p-2 border border-slate-300">400</td>
+      <td className="p-2 border border-slate-300">Please upload your file.</td>
     </tr>
     </tr>
     <tr>
     <tr>
-      <td class="p-2 border border-slate-300">too_many_files</td>
-      <td class="p-2 border border-slate-300">400</td>
-      <td class="p-2 border border-slate-300">Only one file is allowed.</td>
+      <td className="p-2 border border-slate-300">too_many_files</td>
+      <td className="p-2 border border-slate-300">400</td>
+      <td className="p-2 border border-slate-300">Only one file is allowed.</td>
     </tr>
     </tr>
     <tr>
     <tr>
-      <td class="p-2 border border-slate-300">file_too_large</td>
-      <td class="p-2 border border-slate-300">413</td>
-      <td class="p-2 border border-slate-300">File size exceeded.</td>
+      <td className="p-2 border border-slate-300">file_too_large</td>
+      <td className="p-2 border border-slate-300">413</td>
+      <td className="p-2 border border-slate-300">File size exceeded.</td>
     </tr>
     </tr>
     <tr>
     <tr>
-      <td class="p-2 border border-slate-300">unsupported_file_type</td>
-      <td class="p-2 border border-slate-300">415</td>
-      <td class="p-2 border border-slate-300">File type not allowed.</td>
+      <td className="p-2 border border-slate-300">unsupported_file_type</td>
+      <td className="p-2 border border-slate-300">415</td>
+      <td className="p-2 border border-slate-300">File type not allowed.</td>
     </tr>
     </tr>
     <tr>
     <tr>
-      <td class="p-2 border border-slate-300">high_quality_dataset_only</td>
-      <td class="p-2 border border-slate-300">400</td>
-      <td class="p-2 border border-slate-300">Current operation only supports 'high-quality' datasets.</td>
+      <td className="p-2 border border-slate-300">high_quality_dataset_only</td>
+      <td className="p-2 border border-slate-300">400</td>
+      <td className="p-2 border border-slate-300">Current operation only supports 'high-quality' datasets.</td>
     </tr>
     </tr>
     <tr>
     <tr>
-      <td class="p-2 border border-slate-300">dataset_not_initialized</td>
-      <td class="p-2 border border-slate-300">400</td>
-      <td class="p-2 border border-slate-300">The dataset is still being initialized or indexing. Please wait a moment.</td>
+      <td className="p-2 border border-slate-300">dataset_not_initialized</td>
+      <td className="p-2 border border-slate-300">400</td>
+      <td className="p-2 border border-slate-300">The dataset is still being initialized or indexing. Please wait a moment.</td>
     </tr>
     </tr>
     <tr>
     <tr>
-      <td class="p-2 border border-slate-300">archived_document_immutable</td>
-      <td class="p-2 border border-slate-300">403</td>
-      <td class="p-2 border border-slate-300">The archived document is not editable.</td>
+      <td className="p-2 border border-slate-300">archived_document_immutable</td>
+      <td className="p-2 border border-slate-300">403</td>
+      <td className="p-2 border border-slate-300">The archived document is not editable.</td>
     </tr>
     </tr>
     <tr>
     <tr>
-      <td class="p-2 border border-slate-300">dataset_name_duplicate</td>
-      <td class="p-2 border border-slate-300">409</td>
-      <td class="p-2 border border-slate-300">The dataset name already exists. Please modify your dataset name.</td>
+      <td className="p-2 border border-slate-300">dataset_name_duplicate</td>
+      <td className="p-2 border border-slate-300">409</td>
+      <td className="p-2 border border-slate-300">The dataset name already exists. Please modify your dataset name.</td>
     </tr>
     </tr>
     <tr>
     <tr>
-      <td class="p-2 border border-slate-300">invalid_action</td>
-      <td class="p-2 border border-slate-300">400</td>
-      <td class="p-2 border border-slate-300">Invalid action.</td>
+      <td className="p-2 border border-slate-300">invalid_action</td>
+      <td className="p-2 border border-slate-300">400</td>
+      <td className="p-2 border border-slate-300">Invalid action.</td>
     </tr>
     </tr>
     <tr>
     <tr>
-      <td class="p-2 border border-slate-300">document_already_finished</td>
-      <td class="p-2 border border-slate-300">400</td>
-      <td class="p-2 border border-slate-300">The document has been processed. Please refresh the page or go to the document details.</td>
+      <td className="p-2 border border-slate-300">document_already_finished</td>
+      <td className="p-2 border border-slate-300">400</td>
+      <td className="p-2 border border-slate-300">The document has been processed. Please refresh the page or go to the document details.</td>
     </tr>
     </tr>
     <tr>
     <tr>
-      <td class="p-2 border border-slate-300">document_indexing</td>
-      <td class="p-2 border border-slate-300">400</td>
-      <td class="p-2 border border-slate-300">The document is being processed and cannot be edited.</td>
+      <td className="p-2 border border-slate-300">document_indexing</td>
+      <td className="p-2 border border-slate-300">400</td>
+      <td className="p-2 border border-slate-300">The document is being processed and cannot be edited.</td>
     </tr>
     </tr>
     <tr>
     <tr>
-      <td class="p-2 border border-slate-300">invalid_metadata</td>
-      <td class="p-2 border border-slate-300">400</td>
-      <td class="p-2 border border-slate-300">The metadata content is incorrect. Please check and verify.</td>
+      <td className="p-2 border border-slate-300">invalid_metadata</td>
+      <td className="p-2 border border-slate-300">400</td>
+      <td className="p-2 border border-slate-300">The metadata content is incorrect. Please check and verify.</td>
     </tr>
     </tr>
   </tbody>
   </tbody>
 </table>
 </table>
-<div class="pb-4" />
+<div className="pb-4" />

+ 13 - 13
web/i18n/lang/app-debug.en.ts

@@ -77,26 +77,26 @@ const translation = {
     },
     },
     dataSet: {
     dataSet: {
       title: 'Context',
       title: 'Context',
-      noData: 'You can import datasets as context',
+      noData: 'You can import Knowledge as context',
       words: 'Words',
       words: 'Words',
       textBlocks: 'Text Blocks',
       textBlocks: 'Text Blocks',
-      selectTitle: 'Select reference dataset',
-      selected: 'Datasets selected',
-      noDataSet: 'No dataset found',
+      selectTitle: 'Select reference Knowledge',
+      selected: 'Knowledge selected',
+      noDataSet: 'No Knowledge found',
       toCreate: 'Go to create',
       toCreate: 'Go to create',
-      notSupportSelectMulti: 'Currently only support one dataset',
+      notSupportSelectMulti: 'Currently only support one Knowledge',
       queryVariable: {
       queryVariable: {
         title: 'Query variable',
         title: 'Query variable',
         tip: 'This variable will be used as the query input for context retrieval, obtaining context information related to the input of this variable.',
         tip: 'This variable will be used as the query input for context retrieval, obtaining context information related to the input of this variable.',
         choosePlaceholder: 'Choose query variable',
         choosePlaceholder: 'Choose query variable',
         noVar: 'No variables',
         noVar: 'No variables',
         noVarTip: 'please create a variable under the Variables section',
         noVarTip: 'please create a variable under the Variables section',
-        unableToQueryDataSet: 'Unable to query the dataset',
-        unableToQueryDataSetTip: 'Unable to query the dataset successfully, please choose a context query variable in the context section.',
+        unableToQueryDataSet: 'Unable to query the Knowledge',
+        unableToQueryDataSetTip: 'Unable to query the Knowledge successfully, please choose a context query variable in the context section.',
         ok: 'OK',
         ok: 'OK',
         contextVarNotEmpty: 'context query variable can not be empty',
         contextVarNotEmpty: 'context query variable can not be empty',
         deleteContextVarTitle: 'Delete variable “{{varName}}”?',
         deleteContextVarTitle: 'Delete variable “{{varName}}”?',
-        deleteContextVarTip: 'This variable has been set as a context query variable, and removing it will impact the normal use of the dataset. If you still need to delete it, please reselect it in the context section.',
+        deleteContextVarTip: 'This variable has been set as a context query variable, and removing it will impact the normal use of the Knowledge. If you still need to delete it, please reselect it in the context section.',
       },
       },
     },
     },
     tools: {
     tools: {
@@ -309,19 +309,19 @@ const translation = {
     settingTitle: 'Retrieval settings',
     settingTitle: 'Retrieval settings',
     retrieveOneWay: {
     retrieveOneWay: {
       title: 'N-to-1 retrieval',
       title: 'N-to-1 retrieval',
-      description: 'Based on user intent and dataset descriptions, the Agent autonomously selects the best dataset for querying. Best for applications with distinct, limited datasets.',
+      description: 'Based on user intent and Knowledge descriptions, the Agent autonomously selects the best Knowledge for querying. Best for applications with distinct, limited Knowledge.',
     },
     },
     retrieveMultiWay: {
     retrieveMultiWay: {
       title: 'Multi-path retrieval',
       title: 'Multi-path retrieval',
-      description: 'Based on user intent, queries across all datasets, retrieves relevant text from multi-sources, and selects the best results matching the user query after reranking. Configuration of the Rerank model API is required.',
+      description: 'Based on user intent, queries across all Knowledge, retrieves relevant text from multi-sources, and selects the best results matching the user query after reranking. Configuration of the Rerank model API is required.',
     },
     },
     rerankModelRequired: 'Rerank model is required',
     rerankModelRequired: 'Rerank model is required',
     params: 'Params',
     params: 'Params',
     top_k: 'Top K',
     top_k: 'Top K',
-    top_kTip: 'Used to filter segments that are most similar to user questions. The system will also dynamically adjust the value of Top K, according to max_tokens of the selected model.',
+    top_kTip: 'Used to filter chunks that are most similar to user questions. The system will also dynamically adjust the value of Top K, according to max_tokens of the selected model.',
     score_threshold: 'Score Threshold',
     score_threshold: 'Score Threshold',
-    score_thresholdTip: 'Used to set the similarity threshold for segment filtering.',
-    retrieveChangeTip: 'Modifying the index mode and retrieval mode may affect applications associated with this dataset.',
+    score_thresholdTip: 'Used to set the similarity threshold for chunks filtering.',
+    retrieveChangeTip: 'Modifying the index mode and retrieval mode may affect applications associated with this Knowledge.',
   },
   },
 }
 }
 
 

+ 11 - 11
web/i18n/lang/app-debug.zh.ts

@@ -77,26 +77,26 @@ const translation = {
     },
     },
     dataSet: {
     dataSet: {
       title: '上下文',
       title: '上下文',
-      noData: '您可以导入数据集作为上下文',
+      noData: '您可以导入知识库作为上下文',
       words: '词',
       words: '词',
       textBlocks: '文本块',
       textBlocks: '文本块',
-      selectTitle: '选择引用数据集',
-      selected: '个数据集被选中',
-      noDataSet: '未找到数据集',
+      selectTitle: '选择引用知识库',
+      selected: '个知识库被选中',
+      noDataSet: '未找到知识库',
       toCreate: '去创建',
       toCreate: '去创建',
-      notSupportSelectMulti: '目前只支持引用一个数据集',
+      notSupportSelectMulti: '目前只支持引用一个知识库',
       queryVariable: {
       queryVariable: {
         title: '查询变量',
         title: '查询变量',
         tip: '该变量将用作上下文检索的查询输入,获取与该变量的输入相关的上下文信息。',
         tip: '该变量将用作上下文检索的查询输入,获取与该变量的输入相关的上下文信息。',
         choosePlaceholder: '请选择变量',
         choosePlaceholder: '请选择变量',
         noVar: '没有变量',
         noVar: '没有变量',
         noVarTip: '请创建变量',
         noVarTip: '请创建变量',
-        unableToQueryDataSet: '无法查询数据集',
-        unableToQueryDataSetTip: '无法成功查询数据集,请在上下文部分选择一个上下文查询变量。',
+        unableToQueryDataSet: '无法查询知识库',
+        unableToQueryDataSetTip: '无法成功查询知识库,请在上下文部分选择一个上下文查询变量。',
         ok: '好的',
         ok: '好的',
         contextVarNotEmpty: '上下文查询变量不能为空',
         contextVarNotEmpty: '上下文查询变量不能为空',
         deleteContextVarTitle: '删除变量“{{varName}}”?',
         deleteContextVarTitle: '删除变量“{{varName}}”?',
-        deleteContextVarTip: '该变量已被设置为上下文查询变量,删除该变量将影响数据集的正常使用。 如果您仍需要删除它,请在上下文部分中重新选择它。',
+        deleteContextVarTip: '该变量已被设置为上下文查询变量,删除该变量将影响知识库的正常使用。 如果您仍需要删除它,请在上下文部分中重新选择它。',
       },
       },
     },
     },
     tools: {
     tools: {
@@ -303,11 +303,11 @@ const translation = {
     settingTitle: '召回设置',
     settingTitle: '召回设置',
     retrieveOneWay: {
     retrieveOneWay: {
       title: 'N选1召回',
       title: 'N选1召回',
-      description: '根据用户意图和数据集描述,由 Agent 自主判断选择最匹配的单个数据集来查询相关文本,适合数据集区分度大且数据集数量偏少的应用。',
+      description: '根据用户意图和知识库描述,由 Agent 自主判断选择最匹配的单个知识库来查询相关文本,适合知识库区分度大且知识库数量偏少的应用。',
     },
     },
     retrieveMultiWay: {
     retrieveMultiWay: {
       title: '多路召回',
       title: '多路召回',
-      description: '根据用户意图同时匹配所有数据集,从多路数据集查询相关文本片段,经过重排序步骤,从多路查询结果中选择匹配用户问题的最佳结果,需配置 Rerank 模型 API。',
+      description: '根据用户意图同时匹配所有知识库,从多路知识库查询相关文本片段,经过重排序步骤,从多路查询结果中选择匹配用户问题的最佳结果,需配置 Rerank 模型 API。',
     },
     },
     rerankModelRequired: '请选择 Rerank 模型',
     rerankModelRequired: '请选择 Rerank 模型',
     params: '参数设置',
     params: '参数设置',
@@ -315,7 +315,7 @@ const translation = {
     top_kTip: '用于筛选与用户问题相似度最高的文本片段。系统同时会根据选用模型上下文窗口大小动态调整分段数量。',
     top_kTip: '用于筛选与用户问题相似度最高的文本片段。系统同时会根据选用模型上下文窗口大小动态调整分段数量。',
     score_threshold: 'Score 阈值',
     score_threshold: 'Score 阈值',
     score_thresholdTip: '用于设置文本片段筛选的相似度阈值。',
     score_thresholdTip: '用于设置文本片段筛选的相似度阈值。',
-    retrieveChangeTip: '修改索引模式和检索模式可能会影响与该数据集关联的应用程序。',
+    retrieveChangeTip: '修改索引模式和检索模式可能会影响与该知识库关联的应用程序。',
   },
   },
 }
 }
 
 

+ 8 - 8
web/i18n/lang/common.en.ts

@@ -65,7 +65,7 @@ const translation = {
         'How much to penalize new tokens based on their existing frequency in the text so far.\nDecreases the model\'s likelihood to repeat the same line verbatim.',
         'How much to penalize new tokens based on their existing frequency in the text so far.\nDecreases the model\'s likelihood to repeat the same line verbatim.',
       max_tokens: 'Max token',
       max_tokens: 'Max token',
       max_tokensTip:
       max_tokensTip:
-        'Used to limit the maximum length of the reply, in tokens. \nLarger values may limit the space left for prompt words, chat logs, and data sets. \nIt is recommended to set it below two-thirds.',
+        'Used to limit the maximum length of the reply, in tokens. \nLarger values may limit the space left for prompt words, chat logs, and Knowledge. \nIt is recommended to set it below two-thirds.',
       maxTokenSettingTip: 'Your max token setting is high, potentially limiting space for prompts, queries, and data. Consider setting it below 2/3.',
       maxTokenSettingTip: 'Your max token setting is high, potentially limiting space for prompts, queries, and data. Consider setting it below 2/3.',
       setToCurrentModelMaxTokenTip: 'Max token is updated to the 80% maximum token of the current model {{maxToken}}.',
       setToCurrentModelMaxTokenTip: 'Max token is updated to the 80% maximum token of the current model {{maxToken}}.',
       stop_sequences: 'Stop sequences',
       stop_sequences: 'Stop sequences',
@@ -86,10 +86,10 @@ const translation = {
     apps: 'Build Apps',
     apps: 'Build Apps',
     plugins: 'Plugins',
     plugins: 'Plugins',
     pluginsTips: 'Integrate third-party plugins or create ChatGPT-compatible AI-Plugins.',
     pluginsTips: 'Integrate third-party plugins or create ChatGPT-compatible AI-Plugins.',
-    datasets: 'Datasets',
+    datasets: 'Knowledge',
     datasetsTips: 'COMING SOON: Import your own text data or write data in real-time via Webhook for LLM context enhancement.',
     datasetsTips: 'COMING SOON: Import your own text data or write data in real-time via Webhook for LLM context enhancement.',
     newApp: 'New App',
     newApp: 'New App',
-    newDataset: 'Create dataset',
+    newDataset: 'Create Knowledge',
   },
   },
   userProfile: {
   userProfile: {
     settings: 'Settings',
     settings: 'Settings',
@@ -234,7 +234,7 @@ const translation = {
     },
     },
     embeddingModel: {
     embeddingModel: {
       key: 'Embedding Model',
       key: 'Embedding Model',
-      tip: 'Set the default model for document embedding processing of the dataset, both retrieval and import of the dataset use this Embedding model for vectorization processing. Switching will cause the vector dimension between the imported dataset and the question to be inconsistent, resulting in retrieval failure. To avoid retrieval failure, please do not switch this model at will.',
+      tip: 'Set the default model for document embedding processing of the Knowledge, both retrieval and import of the Knowledge use this Embedding model for vectorization processing. Switching will cause the vector dimension between the imported Knowledge and the question to be inconsistent, resulting in retrieval failure. To avoid retrieval failure, please do not switch this model at will.',
     },
     },
     speechToTextModel: {
     speechToTextModel: {
       key: 'Speech-to-Text Model',
       key: 'Speech-to-Text Model',
@@ -286,7 +286,7 @@ const translation = {
     connect: 'Connect',
     connect: 'Connect',
     notion: {
     notion: {
       title: 'Notion',
       title: 'Notion',
-      description: 'Using Notion as a data source for the dataset.',
+      description: 'Using Notion as a data source for the Knowledge.',
       connectedWorkspace: 'Connected workspace',
       connectedWorkspace: 'Connected workspace',
       addWorkspace: 'Add workspace',
       addWorkspace: 'Add workspace',
       connected: 'Connected',
       connected: 'Connected',
@@ -363,7 +363,7 @@ const translation = {
     documents: 'Documents',
     documents: 'Documents',
     hitTesting: 'Retrieval Testing',
     hitTesting: 'Retrieval Testing',
     settings: 'Settings',
     settings: 'Settings',
-    emptyTip: 'The data set has not been associated, please go to the application or plug-in to complete the association.',
+    emptyTip: 'The Knowledge has not been associated, please go to the application or plug-in to complete the association.',
     viewDoc: 'View documentation',
     viewDoc: 'View documentation',
     relatedApp: 'linked apps',
     relatedApp: 'linked apps',
   },
   },
@@ -390,7 +390,7 @@ const translation = {
     conversationNameCanNotEmpty: 'Conversation name required',
     conversationNameCanNotEmpty: 'Conversation name required',
     citation: {
     citation: {
       title: 'CITATIONS',
       title: 'CITATIONS',
-      linkToDataset: 'Link to dataset',
+      linkToDataset: 'Link to Knowledge',
       characters: 'Characters:',
       characters: 'Characters:',
       hitCount: 'Retrieval count:',
       hitCount: 'Retrieval count:',
       vectorHash: 'Vector hash:',
       vectorHash: 'Vector hash:',
@@ -405,7 +405,7 @@ const translation = {
         desc: 'Insert context template',
         desc: 'Insert context template',
       },
       },
       modal: {
       modal: {
-        title: '{{num}} Datasets in Context',
+        title: '{{num}} Knowledge in Context',
         add: 'Add Context ',
         add: 'Add Context ',
         footer: 'You can manage contexts in the Context section below.',
         footer: 'You can manage contexts in the Context section below.',
       },
       },

+ 9 - 9
web/i18n/lang/common.zh.ts

@@ -65,8 +65,8 @@ const translation = {
         '影响常见与罕见词汇使用。\n值较大时,倾向于生成不常见的词汇和表达方式。\n值越小,更倾向于使用常见和普遍接受的词汇或短语。',
         '影响常见与罕见词汇使用。\n值较大时,倾向于生成不常见的词汇和表达方式。\n值越小,更倾向于使用常见和普遍接受的词汇或短语。',
       max_tokens: '单次回复限制 max_tokens',
       max_tokens: '单次回复限制 max_tokens',
       max_tokensTip:
       max_tokensTip:
-        '用于限制回复的最大长度,以 token 为单位。\n较大的值可能会限制给提示词、聊天记录和数据集留出的空间。\n建议将其设置在三分之二以下。',
-      maxTokenSettingTip: '您设置的最大 tokens 数较大,可能会导致 prompt、用户问题、数据集内容没有 token 空间进行处理,建议设置到 2/3 以下。',
+        '用于限制回复的最大长度,以 token 为单位。\n较大的值可能会限制给提示词、聊天记录和知识库留出的空间。\n建议将其设置在三分之二以下。',
+      maxTokenSettingTip: '您设置的最大 tokens 数较大,可能会导致 prompt、用户问题、知识库内容没有 token 空间进行处理,建议设置到 2/3 以下。',
       setToCurrentModelMaxTokenTip: '最大令牌数更新为当前模型最大的令牌数 {{maxToken}} 的 80%。',
       setToCurrentModelMaxTokenTip: '最大令牌数更新为当前模型最大的令牌数 {{maxToken}} 的 80%。',
       stop_sequences: '停止序列 stop_sequences',
       stop_sequences: '停止序列 stop_sequences',
       stop_sequencesTip: '最多四个序列,API 将停止生成更多的 token。返回的文本将不包含停止序列。',
       stop_sequencesTip: '最多四个序列,API 将停止生成更多的 token。返回的文本将不包含停止序列。',
@@ -86,10 +86,10 @@ const translation = {
     apps: '构建应用',
     apps: '构建应用',
     plugins: '插件',
     plugins: '插件',
     pluginsTips: '集成第三方插件或创建与 ChatGPT 兼容的 AI 插件。',
     pluginsTips: '集成第三方插件或创建与 ChatGPT 兼容的 AI 插件。',
-    datasets: '数据集',
+    datasets: '知识库',
     datasetsTips: '即将到来: 上传自己的长文本数据,或通过 Webhook 集成自己的数据源',
     datasetsTips: '即将到来: 上传自己的长文本数据,或通过 Webhook 集成自己的数据源',
     newApp: '创建应用',
     newApp: '创建应用',
-    newDataset: '创建数据集',
+    newDataset: '创建知识库',
   },
   },
   userProfile: {
   userProfile: {
     settings: '设置',
     settings: '设置',
@@ -234,7 +234,7 @@ const translation = {
     },
     },
     embeddingModel: {
     embeddingModel: {
       key: 'Embedding 模型',
       key: 'Embedding 模型',
-      tip: '设置数据集文档嵌入处理的默认模型,检索和导入数据集均使用该Embedding模型进行向量化处理,切换后将导致已导入的数据集与问题之间的向量维度不一致,从而导致检索失败。为避免检索失败,请勿随意切换该模型。',
+      tip: '设置知识库文档嵌入处理的默认模型,检索和导入知识库均使用该Embedding模型进行向量化处理,切换后将导致已导入的知识库与问题之间的向量维度不一致,从而导致检索失败。为避免检索失败,请勿随意切换该模型。',
     },
     },
     speechToTextModel: {
     speechToTextModel: {
       key: '语音转文本模型',
       key: '语音转文本模型',
@@ -286,7 +286,7 @@ const translation = {
     connect: '绑定',
     connect: '绑定',
     notion: {
     notion: {
       title: 'Notion',
       title: 'Notion',
-      description: '使用 Notion 作为数据集的数据源。',
+      description: '使用 Notion 作为知识库的数据源。',
       connectedWorkspace: '已绑定工作空间',
       connectedWorkspace: '已绑定工作空间',
       addWorkspace: '添加工作空间',
       addWorkspace: '添加工作空间',
       connected: '已绑定',
       connected: '已绑定',
@@ -363,7 +363,7 @@ const translation = {
     documents: '文档',
     documents: '文档',
     hitTesting: '召回测试',
     hitTesting: '召回测试',
     settings: '设置',
     settings: '设置',
-    emptyTip: ' 数据集尚未关联,请前往应用程序或插件完成关联。',
+    emptyTip: ' 知识库尚未关联,请前往应用程序或插件完成关联。',
     viewDoc: '查看文档',
     viewDoc: '查看文档',
     relatedApp: '个关联应用',
     relatedApp: '个关联应用',
   },
   },
@@ -390,7 +390,7 @@ const translation = {
     conversationNameCanNotEmpty: '会话名称必填',
     conversationNameCanNotEmpty: '会话名称必填',
     citation: {
     citation: {
       title: '引用',
       title: '引用',
-      linkToDataset: '跳转至数据集',
+      linkToDataset: '跳转至知识库',
       characters: '字符:',
       characters: '字符:',
       hitCount: '召回次数:',
       hitCount: '召回次数:',
       vectorHash: '向量哈希:',
       vectorHash: '向量哈希:',
@@ -405,7 +405,7 @@ const translation = {
         desc: '插入上下文模板',
         desc: '插入上下文模板',
       },
       },
       modal: {
       modal: {
-        title: '有 {{num}} 个数据集在上下文中',
+        title: '有 {{num}} 个知识库在上下文中',
         add: '添加上下文',
         add: '添加上下文',
         footer: '您可以在下面的“上下文”部分中管理上下文。',
         footer: '您可以在下面的“上下文”部分中管理上下文。',
       },
       },

+ 24 - 24
web/i18n/lang/dataset-creation.en.ts

@@ -1,7 +1,7 @@
 const translation = {
 const translation = {
   steps: {
   steps: {
     header: {
     header: {
-      creation: 'Create Dataset',
+      creation: 'Create Knowledge',
       update: 'Add data',
       update: 'Add data',
     },
     },
     one: 'Choose data source',
     one: 'Choose data source',
@@ -9,7 +9,7 @@ const translation = {
     three: 'Execute and finish',
     three: 'Execute and finish',
   },
   },
   error: {
   error: {
-    unavailable: 'This dataset is not avaliable',
+    unavailable: 'This Knowledge is not avaliable',
   },
   },
   stepOne: {
   stepOne: {
     filePreview: 'File Preview',
     filePreview: 'File Preview',
@@ -37,11 +37,11 @@ const translation = {
     notionSyncTip: 'To sync with Notion, connection to Notion must be established first.',
     notionSyncTip: 'To sync with Notion, connection to Notion must be established first.',
     connect: 'Go to connect',
     connect: 'Go to connect',
     button: 'next',
     button: 'next',
-    emptyDatasetCreation: 'I want to create an empty dataset',
+    emptyDatasetCreation: 'I want to create an empty Knowledge',
     modal: {
     modal: {
-      title: 'Create an empty dataset',
-      tip: 'An empty dataset will contain no documents, and you can upload documents any time.',
-      input: 'Dataset name',
+      title: 'Create an empty Knowledge',
+      tip: 'An empty Knowledge will contain no documents, and you can upload documents any time.',
+      input: 'Knowledge name',
       placeholder: 'Please input',
       placeholder: 'Please input',
       nameNotEmpty: 'Name cannot be empty',
       nameNotEmpty: 'Name cannot be empty',
       nameLengthInvaild: 'Name must be between 1 to 40 characters',
       nameLengthInvaild: 'Name must be between 1 to 40 characters',
@@ -52,14 +52,14 @@ const translation = {
     overCountLimit: 'All your documents have overed limit {{countLimit}}.',
     overCountLimit: 'All your documents have overed limit {{countLimit}}.',
   },
   },
   stepTwo: {
   stepTwo: {
-    segmentation: 'Segmentation settings',
+    segmentation: 'Chunk settings',
     auto: 'Automatic',
     auto: 'Automatic',
-    autoDescription: 'Automatically set segmentation and preprocessing rules. Unfamiliar users are recommended to select this.',
+    autoDescription: 'Automatically set chunk and preprocessing rules. Unfamiliar users are recommended to select this.',
     custom: 'Custom',
     custom: 'Custom',
-    customDescription: 'Customize segmentation rules, segmentation length, and preprocessing rules, etc.',
+    customDescription: 'Customize chunks rules, chunks length, and preprocessing rules, etc.',
     separator: 'Segment identifier',
     separator: 'Segment identifier',
     separatorPlaceholder: 'For example, newline (\\\\n) or special separator (such as "***")',
     separatorPlaceholder: 'For example, newline (\\\\n) or special separator (such as "***")',
-    maxLength: 'Maximum segment length',
+    maxLength: 'Maximum chunk length',
     rules: 'Text preprocessing rules',
     rules: 'Text preprocessing rules',
     removeExtraSpaces: 'Replace consecutive spaces, newlines and tabs',
     removeExtraSpaces: 'Replace consecutive spaces, newlines and tabs',
     removeUrlEmails: 'Delete all URLs and email addresses',
     removeUrlEmails: 'Delete all URLs and email addresses',
@@ -78,8 +78,8 @@ const translation = {
     QATip: 'Enable this option will consume more tokens',
     QATip: 'Enable this option will consume more tokens',
     QALanguage: 'Segment using',
     QALanguage: 'Segment using',
     emstimateCost: 'Estimation',
     emstimateCost: 'Estimation',
-    emstimateSegment: 'Estimated segments',
-    segmentCount: 'segments',
+    emstimateSegment: 'Estimated chunks',
+    segmentCount: 'chunks',
     calculating: 'Calculating...',
     calculating: 'Calculating...',
     fileSource: 'Preprocess documents',
     fileSource: 'Preprocess documents',
     notionSource: 'Preprocess pages',
     notionSource: 'Preprocess pages',
@@ -90,33 +90,33 @@ const translation = {
     nextStep: 'Save & Process',
     nextStep: 'Save & Process',
     save: 'Save & Process',
     save: 'Save & Process',
     cancel: 'Cancel',
     cancel: 'Cancel',
-    sideTipTitle: 'Why segment and preprocess?',
-    sideTipP1: 'When processing text data, segmentation and cleaning are two important preprocessing steps.',
+    sideTipTitle: 'Why chunk and preprocess?',
+    sideTipP1: 'When processing text data, chunk and cleaning are two important preprocessing steps.',
     sideTipP2: 'Segmentation splits long text into paragraphs so models can understand better. This improves the quality and relevance of model results.',
     sideTipP2: 'Segmentation splits long text into paragraphs so models can understand better. This improves the quality and relevance of model results.',
-    sideTipP3: 'Cleaning removes unnecessary characters and formats, making datasets cleaner and easier to parse.',
-    sideTipP4: 'Proper segmentation and cleaning improve model performance, providing more accurate and valuable results.',
+    sideTipP3: 'Cleaning removes unnecessary characters and formats, making Knowledge cleaner and easier to parse.',
+    sideTipP4: 'Proper chunk and cleaning improve model performance, providing more accurate and valuable results.',
     previewTitle: 'Preview',
     previewTitle: 'Preview',
     previewTitleButton: 'Preview',
     previewTitleButton: 'Preview',
     previewButton: 'Switching to Q&A format',
     previewButton: 'Switching to Q&A format',
-    previewSwitchTipStart: 'The current segment preview is in text format, switching to a question-and-answer format preview will',
+    previewSwitchTipStart: 'The current chunk preview is in text format, switching to a question-and-answer format preview will',
     previewSwitchTipEnd: ' consume additional tokens',
     previewSwitchTipEnd: ' consume additional tokens',
     characters: 'characters',
     characters: 'characters',
     indexSettedTip: 'To change the index method, please go to the ',
     indexSettedTip: 'To change the index method, please go to the ',
     retrivalSettedTip: 'To change the index method, please go to the ',
     retrivalSettedTip: 'To change the index method, please go to the ',
-    datasetSettingLink: 'dataset settings.',
+    datasetSettingLink: 'Knowledge settings.',
   },
   },
   stepThree: {
   stepThree: {
-    creationTitle: '🎉 Dataset created',
-    creationContent: 'We automatically named the dataset, you can modify it at any time',
-    label: 'Dataset name',
+    creationTitle: '🎉 Knowledge created',
+    creationContent: 'We automatically named the Knowledge, you can modify it at any time',
+    label: 'Knowledge name',
     additionTitle: '🎉 Document uploaded',
     additionTitle: '🎉 Document uploaded',
-    additionP1: 'The document has been uploaded to the dataset',
-    additionP2: ', you can find it in the document list of the dataset。',
+    additionP1: 'The document has been uploaded to the Knowledge',
+    additionP2: ', you can find it in the document list of the Knowledge.',
     stop: 'Stop processing',
     stop: 'Stop processing',
     resume: 'Resume processing',
     resume: 'Resume processing',
     navTo: 'Go to document',
     navTo: 'Go to document',
     sideTipTitle: 'What\'s next',
     sideTipTitle: 'What\'s next',
-    sideTipContent: 'After the document finishes indexing, the dataset can be integrated into the application as context, you can find the context setting in the prompt orchestration page. You can also create it as an independent ChatGPT indexing plugin for release.',
+    sideTipContent: 'After the document finishes indexing, the Knowledge can be integrated into the application as context, you can find the context setting in the prompt orchestration page. You can also create it as an independent ChatGPT indexing plugin for release.',
     modelTitle: 'Are you sure to stop embedding?',
     modelTitle: 'Are you sure to stop embedding?',
     modelContent: 'If you need to resume processing later, you will continue from where you left off.',
     modelContent: 'If you need to resume processing later, you will continue from where you left off.',
     modelButtonConfirm: 'Confirm',
     modelButtonConfirm: 'Confirm',

+ 16 - 16
web/i18n/lang/dataset-creation.zh.ts

@@ -1,7 +1,7 @@
 const translation = {
 const translation = {
   steps: {
   steps: {
     header: {
     header: {
-      creation: '创建数据集',
+      creation: '创建知识库',
       update: '上传文件',
       update: '上传文件',
     },
     },
     one: '选择数据源',
     one: '选择数据源',
@@ -9,7 +9,7 @@ const translation = {
     three: '处理并完成',
     three: '处理并完成',
   },
   },
   error: {
   error: {
-    unavailable: '该数据集不可用',
+    unavailable: '该知识库不可用',
   },
   },
   stepOne: {
   stepOne: {
     filePreview: '文件预览',
     filePreview: '文件预览',
@@ -37,12 +37,12 @@ const translation = {
     notionSyncTip: '同步 Notion 内容前,须先绑定 Notion 空间',
     notionSyncTip: '同步 Notion 内容前,须先绑定 Notion 空间',
     connect: '去绑定',
     connect: '去绑定',
     button: '下一步',
     button: '下一步',
-    emptyDatasetCreation: '创建一个空数据集',
+    emptyDatasetCreation: '创建一个空知识库',
     modal: {
     modal: {
-      title: '创建空数据集',
-      tip: '空数据集中还没有文档,你可以在今后任何时候上传文档至该数据集。',
-      input: '数据集名称',
-      placeholder: '请输入数据集名称',
+      title: '创建空知识库',
+      tip: '空知识库中还没有文档,你可以在今后任何时候上传文档至该知识库。',
+      input: '知识库名称',
+      placeholder: '请输入知识库名称',
       nameNotEmpty: '名称不能为空',
       nameNotEmpty: '名称不能为空',
       nameLengthInvaild: '名称长度不能超过 40 个字符',
       nameLengthInvaild: '名称长度不能超过 40 个字符',
       cancelButton: '取消',
       cancelButton: '取消',
@@ -93,8 +93,8 @@ const translation = {
     sideTipTitle: '为什么要分段和预处理?',
     sideTipTitle: '为什么要分段和预处理?',
     sideTipP1: '在处理文本数据时,分段和清洗是两个重要的预处理步骤。',
     sideTipP1: '在处理文本数据时,分段和清洗是两个重要的预处理步骤。',
     sideTipP2: '分段的目的是将长文本拆分成较小的段落,以便模型更有效地处理和理解。这有助于提高模型生成的结果的质量和相关性。',
     sideTipP2: '分段的目的是将长文本拆分成较小的段落,以便模型更有效地处理和理解。这有助于提高模型生成的结果的质量和相关性。',
-    sideTipP3: '清洗则是对文本进行预处理,删除不必要的字符、符号或格式,使数据集更加干净、整洁,便于模型解析。',
-    sideTipP4: '通过对数据集进行适当的分段和清洗,可以提高模型在实际应用中的表现,从而为用户提供更准确、更有价值的结果。',
+    sideTipP3: '清洗则是对文本进行预处理,删除不必要的字符、符号或格式,使知识库更加干净、整洁,便于模型解析。',
+    sideTipP4: '通过对知识库进行适当的分段和清洗,可以提高模型在实际应用中的表现,从而为用户提供更准确、更有价值的结果。',
     previewTitle: '分段预览',
     previewTitle: '分段预览',
     previewTitleButton: '预览',
     previewTitleButton: '预览',
     previewButton: '切换至 Q&A 形式',
     previewButton: '切换至 Q&A 形式',
@@ -103,20 +103,20 @@ const translation = {
     characters: '字符',
     characters: '字符',
     indexSettedTip: '要更改索引方法,请转到',
     indexSettedTip: '要更改索引方法,请转到',
     retrivalSettedTip: '要更改检索方法,请转到',
     retrivalSettedTip: '要更改检索方法,请转到',
-    datasetSettingLink: '数据集设置。',
+    datasetSettingLink: '知识库设置。',
   },
   },
   stepThree: {
   stepThree: {
-    creationTitle: '🎉 数据集已创建',
-    creationContent: '我们自动为该数据集起了个名称,您也可以随时修改',
-    label: '数据集名称',
+    creationTitle: '🎉 知识库已创建',
+    creationContent: '我们自动为该知识库起了个名称,您也可以随时修改',
+    label: '知识库名称',
     additionTitle: '🎉 文档已上传',
     additionTitle: '🎉 文档已上传',
-    additionP1: '文档已上传至数据集:',
-    additionP2: ',你可以在数据集的文档列表中找到它。',
+    additionP1: '文档已上传至知识库:',
+    additionP2: ',你可以在知识库的文档列表中找到它。',
     stop: '停止处理',
     stop: '停止处理',
     resume: '恢复处理',
     resume: '恢复处理',
     navTo: '前往文档',
     navTo: '前往文档',
     sideTipTitle: '接下来做什么',
     sideTipTitle: '接下来做什么',
-    sideTipContent: '当文档完成索引处理后,数据集即可集成至应用内作为上下文使用,你可以在提示词编排页找到上下文设置。你也可以创建成可独立使用的 ChatGPT 索引插件发布。',
+    sideTipContent: '当文档完成索引处理后,知识库即可集成至应用内作为上下文使用,你可以在提示词编排页找到上下文设置。你也可以创建成可独立使用的 ChatGPT 索引插件发布。',
     modelTitle: '确认停止索引过程吗?',
     modelTitle: '确认停止索引过程吗?',
     modelContent: '如果您需要稍后恢复处理,则从停止处继续。',
     modelContent: '如果您需要稍后恢复处理,则从停止处继续。',
     modelButtonConfirm: '确认停止',
     modelButtonConfirm: '确认停止',

+ 11 - 11
web/i18n/lang/dataset-documents.en.ts

@@ -1,7 +1,7 @@
 const translation = {
 const translation = {
   list: {
   list: {
     title: 'Documents',
     title: 'Documents',
-    desc: 'All files of the dataset are shown here, and the entire dataset can be linked to Dify citations or indexed via the Chat plugin.',
+    desc: 'All files of the Knowledge are shown here, and the entire Knowledge can be linked to Dify citations or indexed via the Chat plugin.',
     addFile: 'add file',
     addFile: 'add file',
     addPages: 'Add Pages',
     addPages: 'Add Pages',
     table: {
     table: {
@@ -17,8 +17,8 @@ const translation = {
     action: {
     action: {
       uploadFile: 'Upload new file',
       uploadFile: 'Upload new file',
       settings: 'Segment settings',
       settings: 'Segment settings',
-      addButton: 'Add segment',
-      add: 'Add a segment',
+      addButton: 'Add chunk',
+      add: 'Add a chunk',
       batchAdd: 'Batch add',
       batchAdd: 'Batch add',
       archive: 'Archive',
       archive: 'Archive',
       unarchive: 'Unarchive',
       unarchive: 'Unarchive',
@@ -57,13 +57,13 @@ const translation = {
       content: 'If you need to resume processing later, you will continue from where you left off',
       content: 'If you need to resume processing later, you will continue from where you left off',
     },
     },
     batchModal: {
     batchModal: {
-      title: 'Batch add segments',
+      title: 'Batch add chunks',
       csvUploadTitle: 'Drag and drop your CSV file here, or ',
       csvUploadTitle: 'Drag and drop your CSV file here, or ',
       browse: 'browse',
       browse: 'browse',
       tip: 'The CSV file must conform to the following structure:',
       tip: 'The CSV file must conform to the following structure:',
       question: 'question',
       question: 'question',
       answer: 'answer',
       answer: 'answer',
-      contentTitle: 'segment content',
+      contentTitle: 'chunk content',
       content: 'content',
       content: 'content',
       template: 'Download the template here',
       template: 'Download the template here',
       cancel: 'Cancel',
       cancel: 'Cancel',
@@ -109,8 +109,8 @@ const translation = {
     field: {
     field: {
       processRule: {
       processRule: {
         processDoc: 'Process Document',
         processDoc: 'Process Document',
-        segmentRule: 'Segment Rule',
-        segmentLength: 'Segment Length',
+        segmentRule: 'Chunk Rule',
+        segmentLength: 'Chunks Length',
         processClean: 'Text Process Clean',
         processClean: 'Text Process Clean',
       },
       },
       book: {
       book: {
@@ -212,8 +212,8 @@ const translation = {
         source: 'Source',
         source: 'Source',
       },
       },
       technicalParameters: {
       technicalParameters: {
-        segmentSpecification: 'Segment specification',
-        segmentLength: 'Segment length',
+        segmentSpecification: 'Chunks specification',
+        segmentLength: 'Chunks length',
         avgParagraphLength: 'Avg. paragraph length',
         avgParagraphLength: 'Avg. paragraph length',
         paragraphs: 'Paragraphs',
         paragraphs: 'Paragraphs',
         hitCount: 'Retrieval count',
         hitCount: 'Retrieval count',
@@ -314,7 +314,7 @@ const translation = {
     error: 'Embedding error',
     error: 'Embedding error',
     docName: 'Preprocessing document',
     docName: 'Preprocessing document',
     mode: 'Segmentation rule',
     mode: 'Segmentation rule',
-    segmentLength: 'Segmentation length',
+    segmentLength: 'Chunks length',
     textCleaning: 'Text pre-definition and cleaning',
     textCleaning: 'Text pre-definition and cleaning',
     segments: 'Paragraphs',
     segments: 'Paragraphs',
     highQuality: 'High-quality mode',
     highQuality: 'High-quality mode',
@@ -342,7 +342,7 @@ const translation = {
     contentEmpty: 'Content can not be empty',
     contentEmpty: 'Content can not be empty',
     newTextSegment: 'New Text Segment',
     newTextSegment: 'New Text Segment',
     newQaSegment: 'New Q&A Segment',
     newQaSegment: 'New Q&A Segment',
-    delete: 'Delete this segment ?',
+    delete: 'Delete this chunk ?',
   },
   },
 }
 }
 
 

+ 1 - 1
web/i18n/lang/dataset-documents.zh.ts

@@ -1,7 +1,7 @@
 const translation = {
 const translation = {
   list: {
   list: {
     title: '文档',
     title: '文档',
-    desc: '数据集的所有文件都在这里显示,整个数据集都可以链接到 Dify 引用或通过 Chat 插件进行索引。',
+    desc: '知识库的所有文件都在这里显示,整个知识库都可以链接到 Dify 引用或通过 Chat 插件进行索引。',
     addFile: '添加文件',
     addFile: '添加文件',
     addPages: '添加页面',
     addPages: '添加页面',
     table: {
     table: {

+ 2 - 2
web/i18n/lang/dataset-hit-testing.en.ts

@@ -1,6 +1,6 @@
 const translation = {
 const translation = {
   title: 'Retrieval Testing',
   title: 'Retrieval Testing',
-  desc: 'Test the hitting effect of the dataset based on the given query text.',
+  desc: 'Test the hitting effect of the Knowledge based on the given query text.',
   dateTimeFormat: 'MM/DD/YYYY hh:mm A',
   dateTimeFormat: 'MM/DD/YYYY hh:mm A',
   recents: 'Recents',
   recents: 'Recents',
   table: {
   table: {
@@ -14,7 +14,7 @@ const translation = {
     title: 'Source text',
     title: 'Source text',
     placeholder: 'Please enter a text, a short declarative sentence is recommended.',
     placeholder: 'Please enter a text, a short declarative sentence is recommended.',
     countWarning: 'Up to 200 characters.',
     countWarning: 'Up to 200 characters.',
-    indexWarning: 'High quality dataset only.',
+    indexWarning: 'High quality Knowledge only.',
     testing: 'Testing',
     testing: 'Testing',
   },
   },
   hit: {
   hit: {

+ 2 - 2
web/i18n/lang/dataset-hit-testing.zh.ts

@@ -1,6 +1,6 @@
 const translation = {
 const translation = {
   title: '召回测试',
   title: '召回测试',
-  desc: '基于给定的查询文本测试数据集的召回效果。',
+  desc: '基于给定的查询文本测试知识库的召回效果。',
   dateTimeFormat: 'YYYY-MM-DD HH:mm',
   dateTimeFormat: 'YYYY-MM-DD HH:mm',
   recents: '最近查询',
   recents: '最近查询',
   table: {
   table: {
@@ -14,7 +14,7 @@ const translation = {
     title: '源文本',
     title: '源文本',
     placeholder: '请输入文本,建议使用简短的陈述句。',
     placeholder: '请输入文本,建议使用简短的陈述句。',
     countWarning: '不超过 200 个字符',
     countWarning: '不超过 200 个字符',
-    indexWarning: '仅支持高质量模式数据集',
+    indexWarning: '仅支持高质量模式知识库',
     testing: '测试',
     testing: '测试',
   },
   },
   hit: {
   hit: {

+ 9 - 9
web/i18n/lang/dataset-settings.en.ts

@@ -1,14 +1,14 @@
 const translation = {
 const translation = {
-  title: 'Dataset settings',
-  desc: 'Here you can modify the properties and working methods of the dataset.',
+  title: 'Knowledge settings',
+  desc: 'Here you can modify the properties and working methods of the Knowledge.',
   form: {
   form: {
-    name: 'Dataset Name',
-    namePlaceholder: 'Please enter the dataset name',
+    name: 'Knowledge Name',
+    namePlaceholder: 'Please enter the Knowledge name',
     nameError: 'Name cannot be empty',
     nameError: 'Name cannot be empty',
-    desc: 'Dataset description',
-    descInfo: 'Please write a clear textual description to outline the content of the dataset. This description will be used as a basis for matching when selecting from multiple datasets for inference.',
-    descPlaceholder: 'Describe what is in this data set. A detailed description allows AI to access the content of the data set in a timely manner. If empty, Dify will use the default hit strategy.',
-    descWrite: 'Learn how to write a good dataset description.',
+    desc: 'Knowledge description',
+    descInfo: 'Please write a clear textual description to outline the content of the Knowledge. This description will be used as a basis for matching when selecting from multiple Knowledge for inference.',
+    descPlaceholder: 'Describe what is in this Knowledge. A detailed description allows AI to access the content of the Knowledge in a timely manner. If empty, Dify will use the default hit strategy.',
+    descWrite: 'Learn how to write a good Knowledge description.',
     permissions: 'Permissions',
     permissions: 'Permissions',
     permissionsOnlyMe: 'Only me',
     permissionsOnlyMe: 'Only me',
     permissionsAllMember: 'All team members',
     permissionsAllMember: 'All team members',
@@ -24,7 +24,7 @@ const translation = {
       title: 'Retrieval setting',
       title: 'Retrieval setting',
       learnMore: 'Learn more',
       learnMore: 'Learn more',
       description: ' about retrieval method.',
       description: ' about retrieval method.',
-      longDescription: ' about retrieval method, you can change this at any time in the dataset settings.',
+      longDescription: ' about retrieval method, you can change this at any time in the Knowledge settings.',
     },
     },
     save: 'Save',
     save: 'Save',
   },
   },

+ 9 - 9
web/i18n/lang/dataset-settings.zh.ts

@@ -1,14 +1,14 @@
 const translation = {
 const translation = {
-  title: '数据集设置',
-  desc: '在这里您可以修改数据集的工作方式以及其它设置。',
+  title: '知识库设置',
+  desc: '在这里您可以修改知识库的工作方式以及其它设置。',
   form: {
   form: {
-    name: '数据集名称',
-    namePlaceholder: '请输入数据集名称',
+    name: '知识库名称',
+    namePlaceholder: '请输入知识库名称',
     nameError: '名称不能为空',
     nameError: '名称不能为空',
-    desc: '数据集描述',
-    descInfo: '请写出清楚的文字描述来概述数据集的内容。当从多个数据集中进行选择匹配时,该描述将用作匹配的基础。',
-    descPlaceholder: '描述这个数据集中的内容。详细的描述可以让 AI 及时访问数据集的内容。如果为空,Dify 将使用默认的命中策略。',
-    descWrite: '了解如何编写更好的数据集描述。',
+    desc: '知识库描述',
+    descInfo: '请写出清楚的文字描述来概述知识库的内容。当从多个知识库中进行选择匹配时,该描述将用作匹配的基础。',
+    descPlaceholder: '描述这个知识库中的内容。详细的描述可以让 AI 及时访问知识库的内容。如果为空,Dify 将使用默认的命中策略。',
+    descWrite: '了解如何编写更好的知识库描述。',
     permissions: '可见权限',
     permissions: '可见权限',
     permissionsOnlyMe: '只有我',
     permissionsOnlyMe: '只有我',
     permissionsAllMember: '所有团队成员',
     permissionsAllMember: '所有团队成员',
@@ -24,7 +24,7 @@ const translation = {
       title: '检索设置',
       title: '检索设置',
       learnMore: '了解更多',
       learnMore: '了解更多',
       description: '关于检索方法。',
       description: '关于检索方法。',
-      longDescription: '关于检索方法,您可以随时在数据集设置中更改此设置。',
+      longDescription: '关于检索方法,您可以随时在知识库设置中更改此设置。',
     },
     },
     save: '保存',
     save: '保存',
   },
   },

+ 7 - 7
web/i18n/lang/dataset.en.ts

@@ -2,15 +2,15 @@ const translation = {
   documentCount: ' docs',
   documentCount: ' docs',
   wordCount: 'k words',
   wordCount: 'k words',
   appCount: ' linked apps',
   appCount: ' linked apps',
-  createDataset: 'Create Dataset',
+  createDataset: 'Create Knowledge',
   createDatasetIntro: 'Import your own text data or write data in real-time via Webhook for LLM context enhancement.',
   createDatasetIntro: 'Import your own text data or write data in real-time via Webhook for LLM context enhancement.',
-  deleteDatasetConfirmTitle: 'Delete this dataset?',
+  deleteDatasetConfirmTitle: 'Delete this Knowledge?',
   deleteDatasetConfirmContent:
   deleteDatasetConfirmContent:
-    'Deleting the dataset is irreversible. Users will no longer be able to access your dataset, and all prompt configurations and logs will be permanently deleted.',
-  datasetDeleted: 'Dataset deleted',
-  datasetDeleteFailed: 'Failed to delete dataset',
+    'Deleting the Knowledge is irreversible. Users will no longer be able to access your Knowledge, and all prompt configurations and logs will be permanently deleted.',
+  datasetDeleted: 'Knowledge deleted',
+  datasetDeleteFailed: 'Failed to delete Knowledge',
   didYouKnow: 'Did you know?',
   didYouKnow: 'Did you know?',
-  intro1: 'The dataset can be integrated into the Dify application ',
+  intro1: 'The Knowledge can be integrated into the Dify application ',
   intro2: 'as a context',
   intro2: 'as a context',
   intro3: ',',
   intro3: ',',
   intro4: 'or it ',
   intro4: 'or it ',
@@ -18,7 +18,7 @@ const translation = {
   intro6: ' as a standalone ChatGPT index plug-in to publish',
   intro6: ' as a standalone ChatGPT index plug-in to publish',
   unavailable: 'Unavailable',
   unavailable: 'Unavailable',
   unavailableTip: 'Embedding model is not available, the default embedding model needs to be configured',
   unavailableTip: 'Embedding model is not available, the default embedding model needs to be configured',
-  datasets: 'DATASETS',
+  datasets: 'KNOWLEDGE',
   datasetsApi: 'API',
   datasetsApi: 'API',
   retrieval: {
   retrieval: {
     semantic_search: {
     semantic_search: {

+ 7 - 7
web/i18n/lang/dataset.zh.ts

@@ -2,15 +2,15 @@ const translation = {
   documentCount: ' 文档',
   documentCount: ' 文档',
   wordCount: '千字符',
   wordCount: '千字符',
   appCount: ' 关联应用',
   appCount: ' 关联应用',
-  createDataset: '创建数据集',
+  createDataset: '创建知识库',
   createDatasetIntro: '导入您自己的文本数据或通过 Webhook 实时写入数据以增强 LLM 的上下文。',
   createDatasetIntro: '导入您自己的文本数据或通过 Webhook 实时写入数据以增强 LLM 的上下文。',
-  deleteDatasetConfirmTitle: '要删除数据集吗?',
+  deleteDatasetConfirmTitle: '要删除知识库吗?',
   deleteDatasetConfirmContent:
   deleteDatasetConfirmContent:
-    '删除数据集是不可逆的。用户将无法再访问您的数据集,所有的提示配置和日志将被永久删除。',
-  datasetDeleted: '数据集已删除',
-  datasetDeleteFailed: '删除数据集失败',
+    '删除知识库是不可逆的。用户将无法再访问您的知识库,所有的提示配置和日志将被永久删除。',
+  datasetDeleted: '知识库已删除',
+  datasetDeleteFailed: '删除知识库失败',
   didYouKnow: '你知道吗?',
   didYouKnow: '你知道吗?',
-  intro1: '数据集可以被集成到 Dify 应用中',
+  intro1: '知识库可以被集成到 Dify 应用中',
   intro2: '作为上下文',
   intro2: '作为上下文',
   intro3: ',',
   intro3: ',',
   intro4: '或可以',
   intro4: '或可以',
@@ -18,7 +18,7 @@ const translation = {
   intro6: '为独立的 ChatGPT 插件发布使用',
   intro6: '为独立的 ChatGPT 插件发布使用',
   unavailable: '不可用',
   unavailable: '不可用',
   unavailableTip: '由于 embedding 模型不可用,需要配置默认 embedding 模型',
   unavailableTip: '由于 embedding 模型不可用,需要配置默认 embedding 模型',
-  datasets: '数据集',
+  datasets: '知识库',
   datasetsApi: 'API',
   datasetsApi: 'API',
   retrieval: {
   retrieval: {
     semantic_search: {
     semantic_search: {

+ 1 - 1
web/i18n/lang/explore.en.ts

@@ -69,7 +69,7 @@ const translation = {
         },
         },
         google: 'Searching Google {{query}}',
         google: 'Searching Google {{query}}',
         wikipedia: 'Searching Wikipedia {{query}}',
         wikipedia: 'Searching Wikipedia {{query}}',
-        dataset: 'Retrieving dataset {datasetName}',
+        dataset: 'Retrieving Knowledge {datasetName}',
         date: 'Searching date',
         date: 'Searching date',
       },
       },
     },
     },

+ 1 - 1
web/i18n/lang/explore.zh.ts

@@ -69,7 +69,7 @@ const translation = {
         },
         },
         google: '搜索谷歌 {{query}}',
         google: '搜索谷歌 {{query}}',
         wikipedia: '搜索维基百科 {{query}}',
         wikipedia: '搜索维基百科 {{query}}',
-        dataset: '检索数据集 {datasetName}',
+        dataset: '检索知识库 {datasetName}',
         date: '查询日期',
         date: '查询日期',
       },
       },
     },
     },