Skip to content

Adding more filter tasks and filter recall for so_vector#789

Merged
benwtrent merged 4 commits intoelastic:masterfrom
benwtrent:feature/so-vector-filter-recall
Jun 12, 2025
Merged

Adding more filter tasks and filter recall for so_vector#789
benwtrent merged 4 commits intoelastic:masterfrom
benwtrent:feature/so-vector-filter-recall

Conversation

@benwtrent
Copy link
Member

Here I am adding some more filter searches (knn only) and recall tasks for each of them.

I think 10% and 20% hit difficult spots for HNSW and are important to calculate. making them random ensures we don't hit "nice" pockets of the graph where all the nearest neighbors actually match the filter criteria already or a particular part of the graph actually matches filter criteria.

@benwtrent benwtrent marked this pull request as ready for review June 10, 2025 22:07
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: formatting on some of these looks wonky

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran the formatter, I am surprised it didn't remove tabs and replace with spaces :)

Copy link
Contributor

@john-wagster john-wagster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm right off

Copy link
Contributor

@mayya-sharipova mayya-sharipova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@benwtrent Thanks, nice enhancement of the track!

Indeed, would be nice to cache exact neighbours for filtered queries, as they need to be executed twice.

"k": 10,
"num_candidates": 50,
"filter": {
"range": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: looks like formatting should be improved

}
}
},
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add "include-in-reporting": false to all recall operations>

@benwtrent benwtrent merged commit 60ee730 into elastic:master Jun 12, 2025
13 checks passed
@benwtrent benwtrent deleted the feature/so-vector-filter-recall branch June 12, 2025 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments