Skip to content

Commit 84a6105

Browse files
chore: extract correcrtly the underlying vector
1 parent 1fcc7c7 commit 84a6105

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/common/search/vectorSearchEmbeddingsManager.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,13 @@ export class VectorSearchEmbeddingsManager {
190190
try {
191191
return fieldRef.toFloat32Array();
192192
} catch {
193-
try {
194-
return fieldRef.toBits();
195-
} catch {
196-
return undefined;
197-
}
193+
// nothing to do here
194+
}
195+
196+
try {
197+
return fieldRef.toBits();
198+
} catch {
199+
// nothing to do here
198200
}
199201
}
200202

0 commit comments

Comments
 (0)