Document problematic case in test and acknowledge PR comment

This commit is contained in:
vuthanhtung2412 2025-03-26 12:57:25 +01:00 committed by Louis Dureuil
parent 7707fb18dd
commit 62de70b73c
No known key found for this signature in database

View File

@ -212,6 +212,14 @@ async fn user_provide_mismatched_embedding_dimension() {
"finishedAt": "[date]" "finishedAt": "[date]"
} }
"#); "#);
// FIXME: /!\ Case where number of embeddings is divisor of `dimensions` would still pass
let new_document = json!([
{"id": 0, "name": "kefir", "_vectors": { "manual": [[0, 0], [1, 1], [2, 2]] }},
]);
let (value, code) = index.add_documents(new_document, None).await;
snapshot!(code, @"202 Accepted");
index.wait_task(response.uid()).await.succeeded();
} }
async fn generate_default_user_provided_documents(server: &Server) -> Index { async fn generate_default_user_provided_documents(server: &Server) -> Index {