From 82647bcded02f45328e205c326178fa06029ef34 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 3886f1857..dee651674 100644 --- a/milli/src/index.rs +++ b/milli/src/index.rs @@ -1691,9 +1691,7 @@ impl Index { } } - if !embeddings.is_empty() { - res.insert(embedder_name.to_owned(), embeddings); - } + res.insert(embedder_name.to_owned(), embeddings); } Ok(res) }