diff --git a/.env.example b/.env.example index 28489480..8980f9b3 100644 --- a/.env.example +++ b/.env.example @@ -157,4 +157,7 @@ COS_ENABLE_OLD_DOMAIN=true # ========== 文件上传大小限制 ========== # 统一的文件大小限制(MB),默认为50MB # 影响:单文件上传、gRPC消息大小、Nginx请求体大小 -# MAX_FILE_SIZE_MB=50 \ No newline at end of file +# MAX_FILE_SIZE_MB=50 + +# APK 镜像源设置(可选) +APK_MIRROR_ARG=mirrors.tencent.com diff --git a/docker-compose.yml b/docker-compose.yml index e72a2582..df094e5e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,6 +19,8 @@ services: build: context: . dockerfile: docker/Dockerfile.app + args: + - APK_MIRROR_ARG=${APK_MIRROR_ARG:-} container_name: WeKnora-app ports: - "${APP_PORT:-8080}:8080" diff --git a/frontend/src/i18n/locales/en-US.ts b/frontend/src/i18n/locales/en-US.ts index 73b509d8..bb7ad005 100755 --- a/frontend/src/i18n/locales/en-US.ts +++ b/frontend/src/i18n/locales/en-US.ts @@ -1229,7 +1229,7 @@ export default { overlapDescription: 'Number of overlapping characters between adjacent chunks (0-500)', separatorsLabel: 'Separators', separatorsDescription: 'Separators used when chunking documents', - separatorsPlaceholder: 'Select separators', + separatorsPlaceholder: 'Select or customize separators', separators: { doubleNewline: 'Double newline (\ \ diff --git a/frontend/src/i18n/locales/ko-KR.ts b/frontend/src/i18n/locales/ko-KR.ts index 78301fe2..8e273639 100755 --- a/frontend/src/i18n/locales/ko-KR.ts +++ b/frontend/src/i18n/locales/ko-KR.ts @@ -1357,7 +1357,7 @@ export default { overlapDescription: "인접 문서 청크 간의 중복 문자 수 (0-500)", separatorsLabel: "구분자", separatorsDescription: "문서 청킹 시 사용되는 구분자", - separatorsPlaceholder: "구분자 선택", + separatorsPlaceholder: "구분자 선택 또는 사용자 정의", separators: { doubleNewline: "이중 줄바꿈 (\\n\\n)", singleNewline: "단일 줄바꿈 (\\n)", diff --git a/frontend/src/i18n/locales/ru-RU.ts b/frontend/src/i18n/locales/ru-RU.ts index 138ea59a..fac70962 100755 --- a/frontend/src/i18n/locales/ru-RU.ts +++ b/frontend/src/i18n/locales/ru-RU.ts @@ -1171,7 +1171,7 @@ export default { overlapDescription: 'Количество перекрывающихся символов между соседними блоками (0-500)', separatorsLabel: 'Разделители', separatorsDescription: 'Разделители, используемые при разбиении документов', - separatorsPlaceholder: 'Выберите разделители', + separatorsPlaceholder: 'Выберите или настройте разделители', separators: { doubleNewline: 'Двойной перевод строки (\\n\\n)', singleNewline: 'Одинарный перевод строки (\\n)', diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.ts index ae8f26e5..9e58d02f 100755 --- a/frontend/src/i18n/locales/zh-CN.ts +++ b/frontend/src/i18n/locales/zh-CN.ts @@ -1582,7 +1582,7 @@ export default { overlapDescription: "相邻文档块之间的重叠字符数(0-500)", separatorsLabel: "分隔符", separatorsDescription: "文档分块时使用的分隔符", - separatorsPlaceholder: "选择分隔符", + separatorsPlaceholder: "选择或自定义分隔符", separators: { doubleNewline: "双换行 (\\n\\n)", singleNewline: "单换行 (\\n)", diff --git a/frontend/src/views/knowledge/settings/KBChunkingSettings.vue b/frontend/src/views/knowledge/settings/KBChunkingSettings.vue index bee4bb0b..f8fda47e 100644 --- a/frontend/src/views/knowledge/settings/KBChunkingSettings.vue +++ b/frontend/src/views/knowledge/settings/KBChunkingSettings.vue @@ -61,6 +61,8 @@ v-model="localSeparators" :options="separatorOptions" multiple + creatable + filterable :placeholder="$t('knowledgeEditor.chunking.separatorsPlaceholder')" @change="handleSeparatorsChange" style="width: 280px;"