parsed vectors: embeddings is None when it is null when read from DB

This commit is contained in:
Louis Dureuil 2025-07-01 23:55:07 +02:00
parent e30c24b5bf
commit 9ce5598fef
No known key found for this signature in database

View file

@ -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 {