You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Avoid results with higher distances. Offset of 2 to fix "0" score comparation. Ex 0 vs 1.
395
-
scoreThreshold:=searchResp[0].Score*1.1+2.0
394
+
// Avoid results with higher distances. Offset of 3 to fix "0" score comparation. Ex 0 vs 1.
395
+
scoreThreshold:=searchResp[0].Score*1.1+3.0
396
396
ifresult.Score>scoreThreshold {
397
397
fmt.Printf("Filtering out results starting at index %d. Best score: %f, threshold: %f, current score: %f\n", i, searchResp[0].Score, scoreThreshold, result.Score)
398
398
break
399
399
}
400
+
400
401
allResults=append(allResults, result)
402
+
ifresult.Rank<2 {
403
+
break// Stop if the component is popular enough
404
+
}
401
405
}
402
406
403
407
fmt.Printf("processSearchResults: converted %d points to %d results\n", len(searchResp), len(allResults))
0 commit comments