feat: 执行详情增加多路召回

This commit is contained in:
wangdan-fit2cloud 2024-09-12 15:13:55 +08:00
parent 003f338a08
commit ef900c4e01

View File

@ -176,16 +176,30 @@
<div class="card-never border-r-4 mt-8"> <div class="card-never border-r-4 mt-8">
<h5 class="p-8-12">检索结果</h5> <h5 class="p-8-12">检索结果</h5>
<div class="p-8-12 border-t-dashed lighter"> <div class="p-8-12 border-t-dashed lighter">
<template v-if="item.paragraph_list?.length > 0"> <template v-if="item.result_list?.length > 0">
<template <template
v-for="(paragraph, paragraphIndex) in arraySort( v-for="(paragraph, paragraphIndex) in item.result_list"
item.paragraph_list,
'similarity',
true
)"
:key="paragraphIndex" :key="paragraphIndex"
> >
<ParagraphCard :data="paragraph" :index="paragraphIndex" /> <CardBox
shadow="never"
title=""
class="paragraph-source-card cursor mb-8 paragraph-source-card-height"
:showIcon="false"
>
<div class="active-button primary">
{{ paragraph.metadata.relevance_score?.toFixed(3) }}
</div>
<template #description>
<el-scrollbar height="150">
<MdPreview
ref="editorRef"
editorId="preview-only"
:modelValue="paragraph.page_content"
/>
</el-scrollbar>
</template>
</CardBox>
</template> </template>
</template> </template>
<template v-else> - </template> <template v-else> - </template>