Remove userProvided from fragments

This commit is contained in:
Mubelotix
2025-07-29 10:56:54 +02:00
parent 66b6e47494
commit 3580b3a4ef
2 changed files with 5 additions and 5 deletions

View File

@ -930,9 +930,6 @@ async fn vector_filter_specific_fragment() {
{ {
"name": "kefir" "name": "kefir"
}, },
{
"name": "echo"
},
{ {
"name": "intel" "name": "intel"
}, },
@ -944,7 +941,7 @@ async fn vector_filter_specific_fragment() {
"processingTimeMs": "[duration]", "processingTimeMs": "[duration]",
"limit": 20, "limit": 20,
"offset": 0, "offset": 0,
"estimatedTotalHits": 4 "estimatedTotalHits": 3
} }
"#); "#);
} }

View File

@ -119,7 +119,10 @@ fn evaluate_inner(
.collect(), .collect(),
})?; })?;
arroy_wrapper.items_in_store(rtxn, fragment_config.id, |bitmap| bitmap.clone())? let user_provided_docsids = embedder_info.embedding_status.user_provided_docids();
arroy_wrapper.items_in_store(rtxn, fragment_config.id, |bitmap| {
bitmap.clone() - user_provided_docsids
})?
} }
VectorFilter::DocumentTemplate => { VectorFilter::DocumentTemplate => {
if !embedding_config.fragments.as_slice().is_empty() { if !embedding_config.fragments.as_slice().is_empty() {