Skip to content

Add fp16 support to the diversifying children KNN query - #16738

Merged
kaivalnp merged 8 commits into
apache:mainfrom
Pulkitg64:diversify
Oct 1, 2026
Merged

kaivalnp merged 8 commits into
apache:mainfrom
Pulkitg64:diversify

Conversation

@Pulkitg64

Copy link
Copy Markdown
Contributor

Description

Solves a task of #16725

We have been adding FP16 vector encoding support to Lucene 11. This PR adds FP16 support to the parent-block-join diversifying kNN query, which joins matching children vector documents with their parent doc id during kNN search.

@kaivalnp kaivalnp added this to the 11.0.0 milestone Sep 30, 2026

@kaivalnp kaivalnp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice! The new class is very similar to the float32 equivalent. Added small comments.

Comment thread lucene/CHANGES.txt Outdated

@kaivalnp kaivalnp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

* @param searchStrategy the search strategy to use. If null, the default strategy will be used.
* The underlying format may not support all strategies and is free to ignore the requested
* strategy.
* @lucene.experimental

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pre-existing, but I think this belongs in the javadocs of the class and not the constructor?

This can be fixed in a follow-up PR though.

@kaivalnp
kaivalnp merged commit cb27635 into apache:main Oct 1, 2026
12 checks passed
@kaivalnp kaivalnp linked an issue Oct 1, 2026 that may be closed by this pull request
2 of 5 tasks
@Pulkitg64
Pulkitg64 deleted the diversify branch October 7, 2026 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Complete FP16 (float16) vector support across Lucene

2 participants