From b0bdbf633efa5884fda84638cbc0ecfa706eac43 Mon Sep 17 00:00:00 2001 From: hailin Date: Thu, 29 May 2025 17:43:10 +0800 Subject: [PATCH] . --- chatdesk-ui/components/chat/chat-helpers/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chatdesk-ui/components/chat/chat-helpers/index.ts b/chatdesk-ui/components/chat/chat-helpers/index.ts index 1ade550..4210829 100644 --- a/chatdesk-ui/components/chat/chat-helpers/index.ts +++ b/chatdesk-ui/components/chat/chat-helpers/index.ts @@ -124,11 +124,12 @@ export const handleRetrieval = async ( console.log("🔍 筛选后结果:", { total: results.length, - >=80: highSimilarity.length, - >=50: results.filter(r => r.similarity >= LOW_THRESHOLD).length, + ">=80": highSimilarity.length, + ">=50": results.filter(r => r.similarity >= LOW_THRESHOLD).length, finalReturned: filteredResults.length, topMatchScore: filteredResults[0]?.similarity }) + return filteredResults