fixup tests, in particular foil the cache for the timeout test

This commit is contained in:
Louis Dureuil 2025-03-13 11:13:36 +01:00
parent b08544e86d
commit d0b0b90d17
No known key found for this signature in database
2 changed files with 4 additions and 5 deletions

View File

@ -104,10 +104,9 @@ fn import_vectors() {
let configs = index_scheduler.embedders("doggos".to_string(), configs).unwrap();
let (hf_embedder, _, _) = configs.get(&simple_hf_name).unwrap();
let beagle_embed =
hf_embedder.embed_search(S("Intel the beagle best doggo"), None).unwrap();
let lab_embed = hf_embedder.embed_search(S("Max the lab best doggo"), None).unwrap();
let patou_embed = hf_embedder.embed_search(S("kefir the patou best doggo"), None).unwrap();
let beagle_embed = hf_embedder.embed_search("Intel the beagle best doggo", None).unwrap();
let lab_embed = hf_embedder.embed_search("Max the lab best doggo", None).unwrap();
let patou_embed = hf_embedder.embed_search("kefir the patou best doggo", None).unwrap();
(fakerest_name, simple_hf_name, beagle_embed, lab_embed, patou_embed)
};

View File

@ -1995,7 +1995,7 @@ async fn timeout() {
let (response, code) = index
.search_post(json!({
"q": "grand chien de berger des montagnes",
"q": "grand chien de berger des montagnes foil the cache",
"hybrid": {"semanticRatio": 0.99, "embedder": "default"}
}))
.await;