diff --git a/chatdesk-ui/components/chat/chat-helpers/index.ts b/chatdesk-ui/components/chat/chat-helpers/index.ts index 4210829..f5e6871 100644 --- a/chatdesk-ui/components/chat/chat-helpers/index.ts +++ b/chatdesk-ui/components/chat/chat-helpers/index.ts @@ -100,7 +100,7 @@ export const handleRetrieval = async ( const HIGH_THRESHOLD = 0.8 const LOW_THRESHOLD = 0.5 - let filteredResults + let filteredResults: RetrievedFileItem[] = [] // 找出所有 ≥ 0.8 的结果 const highSimilarity = results.filter(item => item.similarity >= HIGH_THRESHOLD)