mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
parsed vectors: embeddings is None when it is null when read from DB
This commit is contained in:
parent
e30c24b5bf
commit
9ce5598fef
1 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue