diff --git a/web/src/components/ToolCallingResult/KnowledgeBaseResult.vue b/web/src/components/ToolCallingResult/KnowledgeBaseResult.vue index f8a986cd..c3d619c5 100644 --- a/web/src/components/ToolCallingResult/KnowledgeBaseResult.vue +++ b/web/src/components/ToolCallingResult/KnowledgeBaseResult.vue @@ -3,50 +3,54 @@

知识库检索结果

- 找到 {{ data.length }} 个相关文档片段 + 找到 {{ data.length }} 个相关文档片段,来自 {{ fileGroups.length }} 个文件
-
-
#{{ index + 1 }}
-
+ +
+
- {{ result.file.filename }} + {{ fileGroup.filename }} + {{ fileGroup.chunks.length }} chunks
-
ID: {{ result.id }}
-
- -
-
- 相似度: - - {{ result.distance.toFixed(4) }} -
- -
- 重排序: - - {{ result.rerank_score.toFixed(4) }} +
+
-
-
{{ result.entity.text }}
+ +
+
+
+ #{{ index + 1 }} +
+ 相似度 {{ (chunk.distance * 100).toFixed(0) }}% + 重排序 {{ (chunk.rerank_score * 100).toFixed(0) }}% +
+ {{ getPreviewText(chunk.entity.text) }} + +
+
@@ -54,11 +58,56 @@

未找到相关知识库内容

+ + + +
+
+
+
+
相似度分数
+
{{ (selectedChunk.data.distance * 100).toFixed(1) }}%
+ +
+
+
重排序分数
+
{{ (selectedChunk.data.rerank_score * 100).toFixed(1) }}%
+ +
+
+
+ ID: {{ selectedChunk.data.id }} +
+
+ +
+
文档内容
+
{{ selectedChunk.data.entity.text }}
+
+
+