feat: 支持工作流知识库多库检索
This commit is contained in:
@@ -12,7 +12,7 @@ import {
|
||||
import { useRoute } from 'vue-router';
|
||||
|
||||
import {usePreferences} from '@easyflow/preferences';
|
||||
import {getOptions, sortNodes} from '@easyflow/utils';
|
||||
import {sortNodes} from '@easyflow/utils';
|
||||
import {Tinyflow} from '@tinyflow-ai/vue';
|
||||
|
||||
import {ArrowLeft, CircleCheck, Close, Promotion,} from '@element-plus/icons-vue';
|
||||
@@ -220,7 +220,14 @@ const provider = computed(() => ({
|
||||
description: item.description,
|
||||
};
|
||||
}),
|
||||
knowledge: () => getOptions('title', 'id', knowledgeList.value),
|
||||
knowledge: () => knowledgeList.value.map((item: any) => ({
|
||||
label: item.title,
|
||||
value: item.id,
|
||||
description: item.description,
|
||||
embeddingModelId: item.vectorEmbedModelId,
|
||||
embeddingDimension: item.dimensionOfVectorModel,
|
||||
vectorStoreEnabled: item.vectorStoreEnabled,
|
||||
})),
|
||||
searchEngine: (): any => [
|
||||
{
|
||||
value: 'bocha-search',
|
||||
|
||||
Reference in New Issue
Block a user