🐛 fix distance metric

This commit is contained in:
Nate Sesti 2024-01-26 18:45:49 -08:00
parent 66eea3268e
commit 5c999b6c7c

View file

@ -283,7 +283,7 @@ export class LanceDbIndex implements CodebaseIndex {
}
allResults = allResults
.sort((a, b) => b._distance - a._distance)
.sort((a, b) => a._distance - b._distance)
.slice(0, n);
const sqliteDb = await SqliteDb.get();