Add deep AI search to rerank all components in selected sources#2430
Conversation
🎩 PreviewA preview build has been created at: |
[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
560f2e7 to
a642884
Compare
Re: the AbortSignal note on the rerank mutation ( |
a642884 to
dd4c88b
Compare
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

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.