[desktop] Fix early exit threshold (#3103)

This commit is contained in:
Manav Rathi
2024-09-02 21:56:37 +05:30
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -70,7 +70,7 @@ export default function ClusterDebug() {
minScore: 0.8,
minClusterSize: 2,
joinThreshold: 0.7,
earlyExitThreshold: 0.2,
earlyExitThreshold: 0.8,
batchSize: 10000,
lookbackSize: 2500,
},

View File

@@ -519,7 +519,7 @@ const clusterLinear = (
// If we've found something "near enough", stop looking for a
// better match. This speeds up clustering.
if (earlyExitThreshold > 0 && csim < earlyExitThreshold)
if (earlyExitThreshold > 0 && csim > earlyExitThreshold)
break;
}
}