From 9ce5598fef9d966621710192934ebb6cd45bdbd2 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Tue, 1 Jul 2025 23:55:07 +0200 Subject: [PATCH] parsed vectors: embeddings is None when it is null when read from DB --- crates/milli/src/vector/parsed_vectors.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/milli/src/vector/parsed_vectors.rs b/crates/milli/src/vector/parsed_vectors.rs index 36e80677a..8ff5a2201 100644 --- a/crates/milli/src/vector/parsed_vectors.rs +++ b/crates/milli/src/vector/parsed_vectors.rs @@ -150,7 +150,8 @@ impl<'doc> serde::de::Visitor<'doc> for RawVectorsVisitor { regenerate = Some(value); } Ok(Some("embeddings")) => { - let value: &RawValue = match map.next_value() { + let value: &RawValue = match map.next_value::<&RawValue>() { + Ok(value) if value.get() == "null" => continue, Ok(value) => value, Err(error) => { return Ok(Err(RawVectorsError::DeserializeEmbeddings {