Skip to content

Commit a13c4a7

Browse files
committed
feat: add APK mirror configuration and enhance chunking separator options
1 parent af471b5 commit a13c4a7

File tree

7 files changed

+12
-5
lines changed

7 files changed

+12
-5
lines changed

.env.example

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,7 @@ COS_ENABLE_OLD_DOMAIN=true
157157
# ========== 文件上传大小限制 ==========
158158
# 统一的文件大小限制(MB),默认为50MB
159159
# 影响:单文件上传、gRPC消息大小、Nginx请求体大小
160-
# MAX_FILE_SIZE_MB=50
160+
# MAX_FILE_SIZE_MB=50
161+
162+
# APK 镜像源设置(可选)
163+
APK_MIRROR_ARG=mirrors.tencent.com

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ services:
1919
build:
2020
context: .
2121
dockerfile: docker/Dockerfile.app
22+
args:
23+
- APK_MIRROR_ARG=${APK_MIRROR_ARG:-}
2224
container_name: WeKnora-app
2325
ports:
2426
- "${APP_PORT:-8080}:8080"

frontend/src/i18n/locales/en-US.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,7 @@ export default {
12291229
overlapDescription: 'Number of overlapping characters between adjacent chunks (0-500)',
12301230
separatorsLabel: 'Separators',
12311231
separatorsDescription: 'Separators used when chunking documents',
1232-
separatorsPlaceholder: 'Select separators',
1232+
separatorsPlaceholder: 'Select or customize separators',
12331233
separators: {
12341234
doubleNewline: 'Double newline (\
12351235
\

frontend/src/i18n/locales/ko-KR.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1357,7 +1357,7 @@ export default {
13571357
overlapDescription: "인접 문서 청크 간의 중복 문자 수 (0-500)",
13581358
separatorsLabel: "구분자",
13591359
separatorsDescription: "문서 청킹 시 사용되는 구분자",
1360-
separatorsPlaceholder: "구분자 선택",
1360+
separatorsPlaceholder: "구분자 선택 또는 사용자 정의",
13611361
separators: {
13621362
doubleNewline: "이중 줄바꿈 (\\n\\n)",
13631363
singleNewline: "단일 줄바꿈 (\\n)",

frontend/src/i18n/locales/ru-RU.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ export default {
11711171
overlapDescription: 'Количество перекрывающихся символов между соседними блоками (0-500)',
11721172
separatorsLabel: 'Разделители',
11731173
separatorsDescription: 'Разделители, используемые при разбиении документов',
1174-
separatorsPlaceholder: 'Выберите разделители',
1174+
separatorsPlaceholder: 'Выберите или настройте разделители',
11751175
separators: {
11761176
doubleNewline: 'Двойной перевод строки (\\n\\n)',
11771177
singleNewline: 'Одинарный перевод строки (\\n)',

frontend/src/i18n/locales/zh-CN.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1582,7 +1582,7 @@ export default {
15821582
overlapDescription: "相邻文档块之间的重叠字符数(0-500)",
15831583
separatorsLabel: "分隔符",
15841584
separatorsDescription: "文档分块时使用的分隔符",
1585-
separatorsPlaceholder: "选择分隔符",
1585+
separatorsPlaceholder: "选择或自定义分隔符",
15861586
separators: {
15871587
doubleNewline: "双换行 (\\n\\n)",
15881588
singleNewline: "单换行 (\\n)",

frontend/src/views/knowledge/settings/KBChunkingSettings.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161
v-model="localSeparators"
6262
:options="separatorOptions"
6363
multiple
64+
creatable
65+
filterable
6466
:placeholder="$t('knowledgeEditor.chunking.separatorsPlaceholder')"
6567
@change="handleSeparatorsChange"
6668
style="width: 280px;"

0 commit comments

Comments
 (0)