feat: multimodal support (image) (#27793)

Co-authored-by: zxhlyh <jasonapring2015@outlook.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Wu Tianwei
2025-12-09 11:44:50 +08:00
committed by GitHub
parent a44b800c85
commit 14d1b3f9b3
77 changed files with 2932 additions and 579 deletions

View File

@@ -378,6 +378,7 @@ const translation = {
answerEmpty: 'Answer can not be empty',
contentPlaceholder: 'Add content here',
contentEmpty: 'Content can not be empty',
allFilesUploaded: 'All files must be uploaded before saving',
newTextSegment: 'New Text Segment',
newQaSegment: 'New Q&A Segment',
addChunk: 'Add Chunk',

View File

@@ -7,7 +7,7 @@ const translation = {
table: {
header: {
source: 'Source',
text: 'Text',
queryContent: 'Query Content',
time: 'Time',
},
},
@@ -29,6 +29,12 @@ const translation = {
hitChunks: 'Hit {{num}} child chunks',
open: 'Open',
keyword: 'Keywords',
imageUploader: {
tip: 'Upload or drop images (Max {{batchCount}}, {{size}}MB each)',
tooltip: 'Upload images (Max {{batchCount}}, {{size}}MB each)',
dropZoneTip: 'Drag file here to upload',
singleChunkAttachmentLimitTooltip: 'The number of single chunk attachments cannot exceed {{limit}}',
},
}
export default translation

View File

@@ -38,6 +38,7 @@ const translation = {
learnMore: 'Learn more',
description: ' about retrieval method.',
longDescription: ' about retrieval method, you can change this at any time in the Knowledge settings.',
multiModalTip: 'When embedding model supports multi-modal, please select a multi-modal rerank model for better performance.',
},
externalKnowledgeAPI: 'External Knowledge API',
externalKnowledgeID: 'External Knowledge ID',

View File

@@ -236,6 +236,16 @@ const translation = {
apiReference: 'API Reference',
},
},
cornerLabel: {
unavailable: 'Unavailable',
pipeline: 'Pipeline',
},
multimodal: 'Multimodal',
imageUploader: {
button: 'Drag and drop file or folder, or',
browse: 'Browse',
tip: '{{supportTypes}} (Max {{batchCount}}, {{size}}MB each)',
},
}
export default translation

View File

@@ -562,6 +562,8 @@ const translation = {
},
knowledgeRetrieval: {
queryVariable: 'Query Variable',
queryText: 'Query Text',
queryAttachment: 'Query Images',
knowledge: 'Knowledge',
outputVars: {
output: 'Retrieval segmented data',
@@ -570,6 +572,7 @@ const translation = {
icon: 'Segmented icon',
url: 'Segmented URL',
metadata: 'Other metadata',
files: 'Retrieved files',
},
metadata: {
title: 'Metadata Filtering',

View File

@@ -375,6 +375,7 @@ const translation = {
answerEmpty: '答案不能为空',
contentPlaceholder: '在这里添加内容',
contentEmpty: '内容不能为空',
allFilesUploaded: '所有文件必须上传完成才能保存',
newTextSegment: '新文本分段',
newQaSegment: '新问答分段',
addChunk: '新增分段',

View File

@@ -7,6 +7,7 @@ const translation = {
table: {
header: {
source: '数据源',
queryContent: '查询内容',
text: '文本',
time: '时间',
},
@@ -29,6 +30,12 @@ const translation = {
hitChunks: '命中 {{num}} 个子段落',
open: '打开',
keyword: '关键词',
imageUploader: {
tip: '上传或拖拽图片 (最多 {{batchCount}} 个,每个大小不超过 {{size}}MB)',
tooltip: '上传图片 (最多 {{batchCount}} 个,每个大小不超过 {{size}}MB)',
dropZoneTip: '拖拽文件到这里上传',
singleChunkAttachmentLimitTooltip: '单个分段附件数量不能超过 {{limit}}',
},
}
export default translation

View File

@@ -38,6 +38,7 @@ const translation = {
learnMore: '了解更多',
description: '关于检索方法。',
longDescription: '关于检索方法,您可以随时在知识库设置中更改此设置。',
multiModalTip: '当 Embedding 模型支持多模态时,请选择多模态 Rerank 模型以获得更好的检索效果。',
},
externalKnowledgeAPI: '外部知识 API',
externalKnowledgeID: '外部知识库 ID',

View File

@@ -236,6 +236,14 @@ const translation = {
apiReference: 'API 文档',
},
},
cornerLabel: {
unavailable: '不可用',
pipeline: '流水线',
},
multimodal: '多模态',
imageUploader: {
tip: '支持 {{supportTypes}} (最多 {{batchCount}} 个,每个大小不超过 {{size}}MB)',
},
}
export default translation

View File

@@ -562,6 +562,8 @@ const translation = {
},
knowledgeRetrieval: {
queryVariable: '查询变量',
queryText: '查询文本',
queryAttachment: '查询图片',
knowledge: '知识库',
outputVars: {
output: '召回的分段',
@@ -570,6 +572,7 @@ const translation = {
icon: '分段图标',
url: '分段链接',
metadata: '其他元数据',
files: '召回的文件',
},
metadata: {
title: '元数据过滤',