Skip to content

Commit

Permalink
fix: knowledge base bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
kangfenmao committed Dec 24, 2024
1 parent 03dd303 commit 2f64653
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/main/services/KnowledgeService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class KnowledgeService {
}

private getRagApplication = async ({ id, model, apiKey, baseURL }: KnowledgeBaseParams): Promise<RAGApplication> => {
console.debug('getRagApplication', path.join(this.storageDir, id))
return new RAGApplicationBuilder()
.setModel('NO_MODEL')
.setEmbeddingModel(
Expand Down
4 changes: 3 additions & 1 deletion src/renderer/src/i18n/locales/en-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,9 @@
"vision": "Vision",
"websearch": "WebSearch",
"free": "Free",
"embedding": "Embedding"
"embedding": "Embedding",
"embedding_model": "Embedding Model",
"embedding_model_tooltip": "Add in Settings->Model Provider->Manage"
}
}
}
4 changes: 3 additions & 1 deletion src/renderer/src/i18n/locales/ru-ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,9 @@
"vision": "Визуальные модели",
"websearch": "Веб-поисковые модели",
"free": "Бесплатные модели",
"embedding": "Встраиваемые модели"
"embedding": "Встраиваемые модели",
"embedding_model": "Встраиваемые модели",
"embedding_model_tooltip": "Добавьте в настройки->модель сервиса->управление"
}
}
}
4 changes: 3 additions & 1 deletion src/renderer/src/i18n/locales/zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,9 @@
"vision": "视觉模型",
"websearch": "网络搜索模型",
"free": "免费模型",
"embedding": "嵌入模型"
"embedding": "嵌入模型",
"embedding_model": "嵌入模型",
"embedding_model_tooltip": "在设置->模型服务中点击管理按钮添加"
}
}
}
4 changes: 3 additions & 1 deletion src/renderer/src/i18n/locales/zh-tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,9 @@
"vision": "視覺模型",
"websearch": "網路搜索模型",
"free": "免費模型",
"embedding": "嵌入模型"
"embedding": "嵌入模型",
"embedding_model": "嵌入模型",
"embedding_model_tooltip": "在设置->模型服务中点击管理按钮添加"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ const PopupContainer: React.FC<Props> = ({ title, resolve }) => {

<Form.Item
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') }]}>
<Select style={{ width: '100%' }} options={selectOptions} placeholder={t('settings.models.empty')} />
</Form.Item>
Expand Down

0 comments on commit 2f64653

Please sign in to comment.