From 1b3ae9285459126b183170a2eac2e2d59610b10e Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Wed, 12 Feb 2025 14:36:56 +0800 Subject: [PATCH] docs: change knowledge base documents chunk max limit --- src/renderer/src/i18n/locales/en-us.json | 11 +++++------ src/renderer/src/i18n/locales/ja-jp.json | 10 +++++----- src/renderer/src/i18n/locales/ru-ru.json | 6 +++--- src/renderer/src/i18n/locales/zh-cn.json | 18 +++++++++--------- src/renderer/src/i18n/locales/zh-tw.json | 4 ++-- .../components/KnowledgeSettingsPopup.tsx | 4 ++-- 6 files changed, 26 insertions(+), 27 deletions(-) diff --git a/src/renderer/src/i18n/locales/en-us.json b/src/renderer/src/i18n/locales/en-us.json index 3ef3a41c..7eef03e7 100644 --- a/src/renderer/src/i18n/locales/en-us.json +++ b/src/renderer/src/i18n/locales/en-us.json @@ -433,10 +433,9 @@ "webdav.noSync": "Waiting for next backup", "webdav.syncError": "Backup Error", "webdav.lastSync": "Last Backup", - "notion.api_key":"Notion API Key", - "notion.database_id":"Notion Database ID", - "notion.title":"Notion Configuration" - + "notion.api_key": "Notion API Key", + "notion.database_id": "Notion Database ID", + "notion.title": "Notion Configuration" }, "quickAssistant": { "title": "Quick Assistant", @@ -677,8 +676,8 @@ "chunk_overlap": "Chunk Overlap", "not_set": "Not Set", "settings": "Knowledge Base Settings", - "document_count": "Requested Document Count", - "document_count_help": "The more documents requested, the more information is included, but the more tokens are consumed", + "document_count": "Requested Document Chunks", + "document_count_help": "The more document chunks requested, the more information is included, but the more tokens are consumed", "document_count_default": "Default", "chunk_size_placeholder": "Default (not recommended to change)", "chunk_overlap_placeholder": "Default (not recommended to change)", diff --git a/src/renderer/src/i18n/locales/ja-jp.json b/src/renderer/src/i18n/locales/ja-jp.json index afeed9be..0b0eca04 100644 --- a/src/renderer/src/i18n/locales/ja-jp.json +++ b/src/renderer/src/i18n/locales/ja-jp.json @@ -424,9 +424,9 @@ "webdav.noSync": "次回のバックアップを待っています", "webdav.syncError": "バックアップエラー", "webdav.lastSync": "最終同期", - "notion.api_key":"Notion APIキー", - "notion.database_id":"Notion データベースID", - "notion.title":"Notion 設定" + "notion.api_key": "Notion APIキー", + "notion.database_id": "Notion データベースID", + "notion.title": "Notion 設定" }, "quickAssistant": { "title": "クイックアシスタント", @@ -655,8 +655,8 @@ "chunk_overlap": "チャンクの重なり", "not_set": "未設定", "settings": "ナレッジベース設定", - "document_count": "要求されたドキュメント数", - "document_count_help": "要求されたドキュメント数が多いほど、付随する情報が多くなりますが、トークンの消費量も増加します", + "document_count": "要求されたドキュメント分段数", + "document_count_help": "要求されたドキュメント分段数が多いほど、付随する情報が多くなりますが、トークンの消費量も増加します", "document_count_default": "デフォルト", "chunk_size_placeholder": "デフォルト(変更しないでください)", "chunk_overlap_placeholder": "デフォルト(変更しないでください)", diff --git a/src/renderer/src/i18n/locales/ru-ru.json b/src/renderer/src/i18n/locales/ru-ru.json index 0016ab3d..2efb367c 100644 --- a/src/renderer/src/i18n/locales/ru-ru.json +++ b/src/renderer/src/i18n/locales/ru-ru.json @@ -425,9 +425,9 @@ "webdav.noSync": "Ожидание следующего резервного копирования", "webdav.syncError": "Ошибка резервного копирования", "webdav.lastSync": "Последняя синхронизация", - "notion.api_key":"Ключ API Notion", - "notion.database_id":"ID базы данных Notion", - "notion.title":"Настройки Notion" + "notion.api_key": "Ключ API Notion", + "notion.database_id": "ID базы данных Notion", + "notion.title": "Настройки Notion" }, "quickAssistant": { "title": "Быстрый помощник", diff --git a/src/renderer/src/i18n/locales/zh-cn.json b/src/renderer/src/i18n/locales/zh-cn.json index 19eca7d5..1dc2613b 100644 --- a/src/renderer/src/i18n/locales/zh-cn.json +++ b/src/renderer/src/i18n/locales/zh-cn.json @@ -123,8 +123,8 @@ "topics.list": "话题列表", "topics.move_to": "移动到", "topics.title": "话题", - "topics.pinned":"固定话题", - "topics.unpinned":"取消固定", + "topics.pinned": "固定话题", + "topics.unpinned": "取消固定", "translate": "翻译", "resend": "重新发送", "thinking": "思考中", @@ -302,10 +302,10 @@ "group.delete.title": "删除分组消息", "group.delete.content": "删除分组消息会删除用户提问和所有助手的回答", "mention.title": "切换模型回答", - "error.notion.export":"Notion 导入失败", - "error.notion.no_api_key":"未配置Notion ApiKey或Notion DatabaseID", - "success.notion.export":"导入Notion成功", - "warn.notion.exporting":"Notion正在导入,请勿重复导入", + "error.notion.export": "Notion 导入失败", + "error.notion.no_api_key": "未配置Notion ApiKey或Notion DatabaseID", + "success.notion.export": "导入Notion成功", + "warn.notion.exporting": "Notion正在导入,请勿重复导入", "citations": "引用内容" }, "minapp": { @@ -521,7 +521,7 @@ "add.type": "提供商类型", "api.url.preview": "预览: {{url}}", "api.url.reset": "重置", - "api.url.tip": "/结尾忽略v1版本,#结尾制使用输入地址", + "api.url.tip": "/结尾忽略v1版本,#结尾强制使用输入地址", "api_host": "API 地址", "api_key": "API 密钥", "api_key.tip": "多个密钥使用逗号分隔", @@ -663,8 +663,8 @@ "chunk_overlap": "重叠大小", "not_set": "未设置", "settings": "知识库设置", - "document_count": "请求文档数量", - "document_count_help": "请求文档数量越多,附带的信息越多,但需要消耗的 Token 也越多", + "document_count": "请求文档分段数量", + "document_count_help": "请求文档分段数量越多,附带的信息越多,但需要消耗的 Token 也越多", "document_count_default": "默认", "chunk_size_placeholder": "默认值(不建议修改)", "chunk_overlap_placeholder": "默认值(不建议修改)", diff --git a/src/renderer/src/i18n/locales/zh-tw.json b/src/renderer/src/i18n/locales/zh-tw.json index 60e3e744..2094dbc0 100644 --- a/src/renderer/src/i18n/locales/zh-tw.json +++ b/src/renderer/src/i18n/locales/zh-tw.json @@ -662,8 +662,8 @@ "chunk_overlap": "重疊大小", "not_set": "未設置", "settings": "知識庫設定", - "document_count": "請求文件數量", - "document_count_help": "請求文件數量越多,附帶的資訊越多,但需要消耗的 Token 也越多", + "document_count": "請求文件分段數量", + "document_count_help": "請求文件分段數量越多,附帶的資訊越多,但需要消耗的 Token 也越多", "document_count_default": "預設", "chunk_size_placeholder": "預設值(不建議修改)", "chunk_overlap_placeholder": "預設值(不建議修改)", diff --git a/src/renderer/src/pages/knowledge/components/KnowledgeSettingsPopup.tsx b/src/renderer/src/pages/knowledge/components/KnowledgeSettingsPopup.tsx index 08cc8ced..0a4d1180 100644 --- a/src/renderer/src/pages/knowledge/components/KnowledgeSettingsPopup.tsx +++ b/src/renderer/src/pages/knowledge/components/KnowledgeSettingsPopup.tsx @@ -121,9 +121,9 @@ const PopupContainer: React.FC = ({ base: _base, resolve }) => {