|
@@ -174,6 +174,12 @@
|
|
|
<template v-if="state.form.datasetIds.length > 0">
|
|
|
({{ state.form.datasetIds.length }})
|
|
|
</template>
|
|
|
+ <div
|
|
|
+ class="__hover ml-4 text-sm font-normal text-[var(--czr-main-color)]"
|
|
|
+ @click="onRecall"
|
|
|
+ >
|
|
|
+ 知识库设置
|
|
|
+ </div>
|
|
|
<CzrButton
|
|
|
type="normal"
|
|
|
title="新增"
|
|
@@ -639,6 +645,11 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <recallConfig
|
|
|
+ v-model:show="state.recallConfig.show"
|
|
|
+ :transfer="state.recallConfig.transfer"
|
|
|
+ @refresh="getRecallConfig"
|
|
|
+ />
|
|
|
<knowledgeSelect
|
|
|
v-model:show="state.knowledgeSelect.show"
|
|
|
:transfer="state.knowledgeSelect.transfer"
|
|
@@ -735,6 +746,7 @@ import {
|
|
|
} from '@/api/modules/app/make'
|
|
|
import { appDetail } from '@/api/modules/app'
|
|
|
import { appTextToAudio } from '@/api/modules/app/chat'
|
|
|
+import recallConfig from '@/views/manage/knowledge/recall-config.vue'
|
|
|
|
|
|
const DictionaryStore = useDictionaryStore()
|
|
|
const AppStore = useAppStore()
|
|
@@ -804,6 +816,10 @@ const state: any = reactive({
|
|
|
canDebug: true,
|
|
|
canModelApply: true,
|
|
|
history: [],
|
|
|
+ recallConfig: {
|
|
|
+ show: false,
|
|
|
+ transfer: {},
|
|
|
+ },
|
|
|
})
|
|
|
const ref_form = ref()
|
|
|
const ref_formPublish = ref()
|
|
@@ -1208,6 +1224,15 @@ const onRestart = () => {
|
|
|
state.canDebug = true
|
|
|
ref_chat.value?.init()
|
|
|
}
|
|
|
+const onRecall = () => {
|
|
|
+ state.recallConfig.transfer = {
|
|
|
+ config: null,
|
|
|
+ }
|
|
|
+ state.recallConfig.show = true
|
|
|
+}
|
|
|
+const getRecallConfig = (config) => {
|
|
|
+ console.log(config)
|
|
|
+}
|
|
|
onMounted(() => {
|
|
|
initDictionary()
|
|
|
initDetail()
|