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