Add deep AI search to rerank all components in selected sources#2430
Open
Mbeaulne wants to merge 1 commit into
Conversation
🎩 PreviewA preview build has been created at: |
This was referenced Jun 18, 2026
Collaborator
Author
8 tasks
8 tasks
This was referenced Jun 18, 2026
Mbeaulne
commented
Jun 18, 2026
Mbeaulne
commented
Jun 18, 2026
Mbeaulne
commented
Jun 18, 2026
Mbeaulne
commented
Jun 18, 2026
Mbeaulne
commented
Jun 18, 2026
Collaborator
Author
[MEDIUM] (Posted as a PR-level comment because this file has no changed lines in the diff to anchor an inline comment to.) |
7d30372 to
c443c7a
Compare
d363ca7 to
60b076d
Compare
c443c7a to
9fdd3d5
Compare
60b076d to
455266e
Compare
9fdd3d5 to
d9e254e
Compare
4a246ee to
8cc6222
Compare
d9e254e to
1351eea
Compare
8cc6222 to
88f3546
Compare
a642884 to
dd4c88b
Compare
This was referenced Jun 23, 2026
camielvs
reviewed
Jun 23, 2026
camielvs
reviewed
Jun 23, 2026
This was referenced Jun 23, 2026
dd4c88b to
bda1e0b
Compare
88f3546 to
9942e6c
Compare
bda1e0b to
e790ecb
Compare
9942e6c to
66fafa8
Compare
e790ecb to
ff9a02a
Compare
13998df to
bf05e0b
Compare
ff9a02a to
787da7b
Compare
bf05e0b to
611c64f
Compare
787da7b to
49294fe
Compare
maxy-shpfy
reviewed
Jun 26, 2026
maxy-shpfy
reviewed
Jun 26, 2026
maxy-shpfy
reviewed
Jun 26, 2026
maxy-shpfy
approved these changes
Jun 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Adds a Deep AI search button alongside the existing AI (smart) search button. While the standard AI search sends a limited, curated set of candidate components to the reranker, Deep AI search sends the entire searchable index — lexical hits first so truncating providers still see the most likely matches early — allowing the model to rerank across every available component in the selected sources.
Key changes:
buildDeepAiCandidateMatches, which builds a candidate pool from all indexed components (no cap), ordered with lexical matches first and remaining components appended alphabetically.canDeepRerankanddeepRerankfromuseComponentSearchV2Stateand wires them into both the Dashboard and Editor search UIs.RerankCandidatewith richer I/O metadata (type and description, not just names) and asourcefield, giving the model more signal when ranking.startAiSearch/startRerankhelpers to accept an arbitrary candidate list, removing duplication between the standard and deep paths.componentReferenceToCandidateto accept an optionalsourceargument and serialize I/O types (including complex object types) viaJSON.stringify.Related Issue and Pull requests
Type of Change
Checklist
Screenshots (if applicable)
Test Instructions
Additional Comments
scoreAllCandidatesis intentionally set tofalsefor deep rerank to avoid scoring overhead across the full index on every result row. The standard AI search retainsscoreAllCandidates: trueso relevance percentages continue to appear on displayed results.