fix: knowledge base bugs
This commit is contained in:
parent
03dd3038e0
commit
2f64653b1e
@ -27,6 +27,7 @@ class KnowledgeService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private getRagApplication = async ({ id, model, apiKey, baseURL }: KnowledgeBaseParams): Promise<RAGApplication> => {
|
private getRagApplication = async ({ id, model, apiKey, baseURL }: KnowledgeBaseParams): Promise<RAGApplication> => {
|
||||||
|
console.debug('getRagApplication', path.join(this.storageDir, id))
|
||||||
return new RAGApplicationBuilder()
|
return new RAGApplicationBuilder()
|
||||||
.setModel('NO_MODEL')
|
.setModel('NO_MODEL')
|
||||||
.setEmbeddingModel(
|
.setEmbeddingModel(
|
||||||
|
|||||||
@ -575,7 +575,9 @@
|
|||||||
"vision": "Vision",
|
"vision": "Vision",
|
||||||
"websearch": "WebSearch",
|
"websearch": "WebSearch",
|
||||||
"free": "Free",
|
"free": "Free",
|
||||||
"embedding": "Embedding"
|
"embedding": "Embedding",
|
||||||
|
"embedding_model": "Embedding Model",
|
||||||
|
"embedding_model_tooltip": "Add in Settings->Model Provider->Manage"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -575,7 +575,9 @@
|
|||||||
"vision": "Визуальные модели",
|
"vision": "Визуальные модели",
|
||||||
"websearch": "Веб-поисковые модели",
|
"websearch": "Веб-поисковые модели",
|
||||||
"free": "Бесплатные модели",
|
"free": "Бесплатные модели",
|
||||||
"embedding": "Встраиваемые модели"
|
"embedding": "Встраиваемые модели",
|
||||||
|
"embedding_model": "Встраиваемые модели",
|
||||||
|
"embedding_model_tooltip": "Добавьте в настройки->модель сервиса->управление"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -564,7 +564,9 @@
|
|||||||
"vision": "视觉模型",
|
"vision": "视觉模型",
|
||||||
"websearch": "网络搜索模型",
|
"websearch": "网络搜索模型",
|
||||||
"free": "免费模型",
|
"free": "免费模型",
|
||||||
"embedding": "嵌入模型"
|
"embedding": "嵌入模型",
|
||||||
|
"embedding_model": "嵌入模型",
|
||||||
|
"embedding_model_tooltip": "在设置->模型服务中点击管理按钮添加"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -563,7 +563,9 @@
|
|||||||
"vision": "視覺模型",
|
"vision": "視覺模型",
|
||||||
"websearch": "網路搜索模型",
|
"websearch": "網路搜索模型",
|
||||||
"free": "免費模型",
|
"free": "免費模型",
|
||||||
"embedding": "嵌入模型"
|
"embedding": "嵌入模型",
|
||||||
|
"embedding_model": "嵌入模型",
|
||||||
|
"embedding_model_tooltip": "在设置->模型服务中点击管理按钮添加"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -95,7 +95,8 @@ const PopupContainer: React.FC<Props> = ({ title, resolve }) => {
|
|||||||
|
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="model"
|
name="model"
|
||||||
label={t('common.model')}
|
label={t('models.embedding_model')}
|
||||||
|
tooltip={{ title: t('models.embedding_model_tooltip'), placement: 'right' }}
|
||||||
rules={[{ required: true, message: t('message.error.enter.model') }]}>
|
rules={[{ required: true, message: t('message.error.enter.model') }]}>
|
||||||
<Select style={{ width: '100%' }} options={selectOptions} placeholder={t('settings.models.empty')} />
|
<Select style={{ width: '100%' }} options={selectOptions} placeholder={t('settings.models.empty')} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user