File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
views/function-lib/component Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 454454 :data =" paragraph.metadata"
455455 :content =" paragraph.page_content"
456456 :index =" paragraphIndex"
457+ :score =" paragraph.metadata?.relevance_score"
457458 />
458459 </template >
459460 </template >
Original file line number Diff line number Diff line change 99 <template #icon >
1010 <AppAvatar class =" mr-12 avatar-light" :size =" 22" > {{ index + 1 + '' }}</AppAvatar >
1111 </template >
12- <div class =" active-button primary" >{{ data.similarity?.toFixed(3) }}</div >
12+ <div class =" active-button primary" >{{ score?.toFixed(3) || data.similarity?.toFixed(3) }}</div >
1313 <template #description >
1414 <el-scrollbar height =" 150" >
15- <MdPreview ref =" editorRef" editorId =" preview-only" :modelValue =" content" noImgZoomIn />
15+ <MdPreview ref =" editorRef" editorId =" preview-only" :modelValue =" content" noImgZoomIn />
1616 </el-scrollbar >
1717 </template >
1818 <template #footer >
@@ -69,6 +69,10 @@ const props = defineProps({
6969 index: {
7070 type: Number ,
7171 default: 0
72+ },
73+ score: {
74+ type: Number ,
75+ default: 0
7276 }
7377})
7478const isMetaObject = computed (() => typeof props .data .meta === ' object' )
Original file line number Diff line number Diff line change 1414 label-position =" top"
1515 require-asterisk-position =" right"
1616 v-loading =" loading"
17+ @submit.prevent
1718 >
1819 <el-form-item
1920 :label =" $t('views.functionLib.functionForm.form.functionName.label')"
You can’t perform that action at this time.
0 commit comments