mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 12:05:05 +08:00
Update test snapshots
This commit is contained in:
parent
f5cf01e7d1
commit
fca9fe39b3
@ -5579,7 +5579,6 @@ mod tests {
|
|||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
snapshot!(serde_json::to_string(&documents).unwrap(), @r###"[{"id":0,"doggo":"kefir"}]"###);
|
snapshot!(serde_json::to_string(&documents).unwrap(), @r###"[{"id":0,"doggo":"kefir"}]"###);
|
||||||
let conf = index.embedding_configs(&rtxn).unwrap();
|
let conf = index.embedding_configs(&rtxn).unwrap();
|
||||||
// TODO: Here the user provided vectors should NOT contains 1
|
|
||||||
snapshot!(format!("{conf:#?}"), @r###"
|
snapshot!(format!("{conf:#?}"), @r###"
|
||||||
[
|
[
|
||||||
IndexEmbeddingConfig {
|
IndexEmbeddingConfig {
|
||||||
@ -5595,7 +5594,7 @@ mod tests {
|
|||||||
template: "{% for field in fields %} {{ field.name }}: {{ field.value }}\n{% endfor %}",
|
template: "{% for field in fields %} {{ field.name }}: {{ field.value }}\n{% endfor %}",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
user_provided: RoaringBitmap<[0, 1]>,
|
user_provided: RoaringBitmap<[0]>,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
"###);
|
"###);
|
||||||
@ -5620,7 +5619,6 @@ mod tests {
|
|||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
snapshot!(serde_json::to_string(&documents).unwrap(), @"[]");
|
snapshot!(serde_json::to_string(&documents).unwrap(), @"[]");
|
||||||
let conf = index.embedding_configs(&rtxn).unwrap();
|
let conf = index.embedding_configs(&rtxn).unwrap();
|
||||||
// TODO: Here the user provided vectors should contains nothing
|
|
||||||
snapshot!(format!("{conf:#?}"), @r###"
|
snapshot!(format!("{conf:#?}"), @r###"
|
||||||
[
|
[
|
||||||
IndexEmbeddingConfig {
|
IndexEmbeddingConfig {
|
||||||
@ -5636,7 +5634,7 @@ mod tests {
|
|||||||
template: "{% for field in fields %} {{ field.name }}: {{ field.value }}\n{% endfor %}",
|
template: "{% for field in fields %} {{ field.name }}: {{ field.value }}\n{% endfor %}",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
user_provided: RoaringBitmap<[0, 1]>,
|
user_provided: RoaringBitmap<[]>,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
"###);
|
"###);
|
||||||
|
@ -43,7 +43,7 @@ async fn update_embedder() {
|
|||||||
{
|
{
|
||||||
"uid": 1,
|
"uid": 1,
|
||||||
"indexUid": "doggo",
|
"indexUid": "doggo",
|
||||||
"status": "failed",
|
"status": "succeeded",
|
||||||
"type": "settingsUpdate",
|
"type": "settingsUpdate",
|
||||||
"canceledBy": null,
|
"canceledBy": null,
|
||||||
"details": {
|
"details": {
|
||||||
@ -54,12 +54,7 @@ async fn update_embedder() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"error": {
|
"error": null,
|
||||||
"message": "`.embedders.manual`: Field `model` unavailable for source `userProvided` (only available for sources: `huggingFace`, `openAi`, `ollama`). Available fields: `source`, `dimensions`, `distribution`",
|
|
||||||
"code": "invalid_settings_embedders",
|
|
||||||
"type": "invalid_request",
|
|
||||||
"link": "https://docs.meilisearch.com/errors#invalid_settings_embedders"
|
|
||||||
},
|
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
"enqueuedAt": "[date]",
|
"enqueuedAt": "[date]",
|
||||||
"startedAt": "[date]",
|
"startedAt": "[date]",
|
||||||
|
Loading…
Reference in New Issue
Block a user