feat: modify the description of qa (#406)

### What problem does this PR solve?

feat: modify the description of qa

Issue link: #405

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu 2024-04-17 11:51:01 +08:00 committed by GitHub
parent 2afe7a74b3
commit 30846c83b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 71 additions and 40 deletions

View File

@ -171,7 +171,7 @@ export default {
methodTitle: 'Chunking Method Description',
methodExamples: 'Examples',
methodExamplesDescription:
'This visual guides is in order to make understanding easier for you.',
'The following screenshots are presented to facilitate understanding.',
dialogueExamplesTitle: 'Dialogue Examples',
methodEmpty:
'This will display a visual explanation of the knowledge base categories',
@ -201,15 +201,27 @@ export default {
presentation: `<p>The supported file formats are <b>PDF</b>, <b>PPTX</b>.</p><p>
Every page will be treated as a chunk. And the thumbnail of every page will be stored.</p><p>
<i>All the PPT files you uploaded will be chunked by using this method automatically, setting-up for every PPT file is not necessary.</i></p>`,
qa: `<p><b>EXCEL</b> and <b>CSV/TXT</b> files are supported.</p><p>
If the file is in excel format, there should be 2 columns question and answer without header.
And question column is ahead of answer column.
And it's O.K if it has multiple sheets as long as the columns are rightly composed.</p><p>
If it's in csv format, it should be UTF-8 encoded. Use TAB as delimiter to separate question and answer.</p><p>
<i>All the deformed lines will be ignored.
Every pair of Q&A will be treated as a chunk.</i></p>`,
qa: `
<p>
This chunk method supports <b>EXCEL</b> and <b>CSV/TXT</b> file formats.
</p>
<li>
If the file is in <b>Excel</b> format, it should consist of two columns
without headers: one for questions and the other for answers, with the
question column preceding the answer column. Multiple sheets are
acceptable as long as the columns are correctly structured.
</li>
<li>
If the file is in <b>CSV/TXT</b> format, it must be UTF-8 encoded with TAB
used as the delimiter to separate questions and answers.
</li>
<p>
<i>
Lines of texts that fail to follow the above rules will be ignored, and
each Q&A pair will be considered a distinct chunk.
</i>
</p>
`,
resume: `<p>The supported file formats are <b>DOCX</b>, <b>PDF</b>, <b>TXT</b>.
</p><p>
The résumé comes in a variety of formats, just like a persons personality, but we often have to organize them into structured data that makes it easy to search.

View File

@ -144,12 +144,12 @@ export default {
languagePlaceholder: '請輸入語言',
permissions: '權限',
embeddingModel: '嵌入模型',
chunkTokenNumber: '塊令牌數',
chunkTokenNumberMessage: '塊令牌數是必填項',
chunkTokenNumber: '塊Token數',
chunkTokenNumberMessage: '塊Token數是必填項',
embeddingModelTip:
'用於嵌入塊的嵌入模型。一旦知識庫有了塊,它就無法更改。如果你想改變它,你需要刪除所有的塊。',
permissionsTip: '如果權限是“團隊”,則所有團隊成員都可以操作知識庫。',
chunkTokenNumberTip: '它大致確定了一個塊的令牌數量。',
chunkTokenNumberTip: '它大致確定了一個塊的Token數量。',
chunkMethod: '解析方法',
chunkMethodTip: '說明位於右側。',
upload: '上傳',
@ -163,7 +163,7 @@ export default {
cancel: '取消',
methodTitle: '分塊方法說明',
methodExamples: '示例',
methodExamplesDescription: '這個視覺指南是為了讓您更容易理解。',
methodExamplesDescription: '提出以下屏幕截圖以促進理解。',
dialogueExamplesTitle: '對話示例',
methodEmpty: '這將顯示知識庫類別的可視化解釋',
book: `<p>支持的文件格式為<b>DOCX</b>、<b>PDF</b>、<b>TXT</b>。</p><p>
@ -182,7 +182,7 @@ export default {
<p></p>
<p>
<li>使</li>
<li></li></p>`,
<li>Token數不超過Token</li></p>`,
paper: `<p>僅支持<b>PDF</b>文件。</p><p>
<i>1.11.2</i></p><p>
LLM可以更好的概括論文中相關章節的內容
@ -192,15 +192,24 @@ export default {
presentation: `<p>支持的文件格式為<b>PDF</b>、<b>PPTX</b>。</p><p>
</p><p>
<i>PPT文件都會使用此方法自動分塊PPT文件進行設置</i></p>`,
qa: `支持<p><b>EXCEL</b>和<b>CSV/TXT</b>文件。</p><p>
Excel格式2
</p><p>
csv UTF-8 使 TAB </p><p>
<i>
</i></p>`,
qa: `<p>
<b> excel </b><b> csv/txt </b>
</p>
<li>
<b> excel </b>
</li>
<li>
<b> csv/txt </b>
</li>
<p>
<i>
</i>`,
resume: `<p>支持的文件格式為<b>DOCX</b>、<b>PDF</b>、<b>TXT</b>。
</p><p>
便
@ -414,7 +423,7 @@ export default {
202: '一個請求已經進入後台排隊(異步任務)。',
204: '刪除數據成功。',
400: '發出的請求有錯誤,服務器沒有進行新建或修改數據的操作。',
401: '用戶沒有權限(令牌、用戶名、密碼錯誤)。',
401: '用戶沒有權限(Token、用戶名、密碼錯誤)。',
403: '用戶得到授權,但是訪問是被禁止的。',
404: '發出的請求針對的是不存在的記錄,服務器沒有進行操作。',
406: '請求的格式不可得。',

View File

@ -145,12 +145,12 @@ export default {
languagePlaceholder: '请输入语言',
permissions: '权限',
embeddingModel: '嵌入模型',
chunkTokenNumber: '块令牌数',
chunkTokenNumberMessage: '块令牌数是必填项',
chunkTokenNumber: '块Token数',
chunkTokenNumberMessage: '块Token数是必填项',
embeddingModelTip:
'用于嵌入块的嵌入模型。 一旦知识库有了块,它就无法更改。 如果你想改变它,你需要删除所有的块。',
permissionsTip: '如果权限是“团队”,则所有团队成员都可以操作知识库。',
chunkTokenNumberTip: '它大致确定了一个块的令牌数量。',
chunkTokenNumberTip: '它大致确定了一个块的Token数量。',
chunkMethod: '解析方法',
chunkMethodTip: '说明位于右侧。',
upload: '上传',
@ -164,7 +164,7 @@ export default {
cancel: '取消',
methodTitle: '分块方法说明',
methodExamples: '示例',
methodExamplesDescription: '这个视觉指南是为了让您更容易理解。',
methodExamplesDescription: '提出以下屏幕截图以促进理解。',
dialogueExamplesTitle: '对话示例',
methodEmpty: '这将显示知识库类别的可视化解释',
book: `<p>支持的文件格式为<b>DOCX</b>、<b>PDF</b>、<b>TXT</b>。</p><p>
@ -183,7 +183,7 @@ export default {
<p></p>
<p>
<li>使</li>
<li></li></p>`,
<li>Token数不超过Token</li></p>`,
paper: `<p>仅支持<b>PDF</b>文件。</p><p>
<i>1.11.2</i></p><p>
LLM可以更好的概括论文中相关章节的内容
@ -193,15 +193,25 @@ export default {
presentation: `<p>支持的文件格式为<b>PDF</b>、<b>PPTX</b>。</p><p>
</p><p>
<i>PPT文件都会使用此方法自动分块PPT文件进行设置</i></p>`,
qa: `支持<p><b>EXCEL</b>和<b>CSV/TXT</b>文件。</p><p>
Excel格式2
</p><p>
csv UTF-8 使 TAB </p><p>
<i>线
</i></p>`,
qa: ` <p>
<b> excel </b><b> csv/txt </b>
</p>
<li>
<b> excel </b>
</li>
<li>
<b> csv/txt </b>
</li>
<p>
<i>
</i>
</p>`,
resume: `<p>支持的文件格式为<b>DOCX</b>、<b>PDF</b>、<b>TXT</b>。
</p><p>
便
@ -430,7 +440,7 @@ export default {
202: '一个请求已经进入后台排队(异步任务)。',
204: '删除数据成功。',
400: '发出的请求有错误,服务器没有进行新建或修改数据的操作。',
401: '用户没有权限(令牌、用户名、密码错误)。',
401: '用户没有权限(Token、用户名、密码错误)。',
403: '用户得到授权,但是访问是被禁止的。',
404: '发出的请求针对的是不存在的记录,服务器没有进行操作。',
406: '请求的格式不可得。',