When retrieveVectors is true, retrieve _vectors.embedder even if there are no vector for that embedder

This commit is contained in:
Louis Dureuil 2024-07-15 15:05:56 +02:00
parent 0df84bbba7
commit c25f7e3450
No known key found for this signature in database

View File

@ -1660,9 +1660,7 @@ impl Index {
}
}
if !embeddings.is_empty() {
res.insert(embedder_name.to_owned(), embeddings);
}
res.insert(embedder_name.to_owned(), embeddings);
}
Ok(res)
}