Tune the threshold for MobileCLIP

Experimentation.

- 0.15 was noisy
- 0.23 was too strict
This commit is contained in:
Manav Rathi
2024-08-10 13:39:14 +05:30
parent 1f28fdada2
commit 5bbc2615e4

View File

@@ -190,5 +190,5 @@ export const clipMatches = async (
// This code is on the hot path, so these optimizations help.
[fileID, dotProduct(embedding, textEmbedding)] as const,
);
return new Map(items.filter(([, score]) => score >= 0.23));
return new Map(items.filter(([, score]) => score >= 0.2));
};