From c25f7e345006916145b0c9d59c48fa9ceb6b64e3 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Mon, 15 Jul 2024 15:05:56 +0200 Subject: [PATCH] When `retrieveVectors` is true, retrieve `_vectors.embedder` even if there are no vector for that embedder --- milli/src/index.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/milli/src/index.rs b/milli/src/index.rs index 0a7a20ce0..a9b118827 100644 --- a/milli/src/index.rs +++ b/milli/src/index.rs @@ -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) }