We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7b2010 commit d1d770dCopy full SHA for d1d770d
src/common/search/vectorSearchEmbeddingsManager.ts
@@ -285,9 +285,9 @@ export class VectorSearchEmbeddingsManager {
285
const adaptedEmbeddings = providerEmbeddings.map((embeddings) => {
286
// now map based on the sample embeddings
287
if (Array.isArray(sampleEmbeddings) && Array.isArray(embeddings)) {
288
- return providerEmbeddings;
+ return embeddings;
289
}
290
- if (sampleEmbeddings instanceof BSON.Binary && Array.isArray(providerEmbeddings)) {
+ if (sampleEmbeddings instanceof BSON.Binary && Array.isArray(embeddings)) {
291
if (this.matches(() => sampleEmbeddings.toBits())) {
292
return BSON.Binary.fromBits(embeddings);
293
0 commit comments