This commit is contained in:
hailin 2025-05-29 17:46:07 +08:00
parent b0bdbf633e
commit 6ee913f067
1 changed files with 1 additions and 1 deletions

View File

@ -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)