AI search
Overview
Searches images that are already indexed and collects the matches into a dataset.
There are two modes. AI Search ranks images by how well they match a text prompt you write, for example a red car at night. Diverse takes no prompt and spreads the selection across a dataset instead, returning one image from each group of visually similar ones.
Every rerun writes a new version of the node’s own hidden dataset, LAST_RUN, holding that run’s matches, and the badge on the node shows how many images were selected and opens it. Pick a destination dataset when you want the matches to stay somewhere permanent.
Prerequisites
How it works
Resolves which embeddings to search, using the model you picked or, on Auto, the first indexed model that covers the images in scope.
Selects the matches: AI Search ranks images against your prompt and keeps those clearing the confidence threshold, while Diverse groups the images and takes the one closest to the middle of each group.
FAQ
Do I have to pick a source dataset?
Only for Diverse and for object search, which both refuse to run without one. AI Search over whole images works without a source dataset and then searches every indexed image in the workspace.
What does object search return?
The images the matching objects sit in, not the objects themselves. An image that holds several matching objects is still returned once.
Which embedding model should I choose?
Leave Auto unless you indexed the same images several times and want a specific one searched. Auto prefers PE-Core, then SigLIP 2, then CLIP, and settles on the first of them that actually covers the images in scope. Choosing a model the images were never indexed with stops the run.
What happens when Diverse asks for more images than the dataset holds?
Every image comes back, because there is nothing left to spread the selection over.
Why does a run stop with an error?
The usual reasons are an empty text prompt in AI Search, or no embeddings covering the images you asked for. Index the dataset first and the search finds it.
Does this node change the source dataset?
No. Images and their annotations are added to the new datasets and the source dataset stays as it was.
Inputs
Source dataset the search runs over. Leave empty to search every indexed image in the workspace, which only AI Search over images can do. Key: DATASET.
Destination dataset the matches are added to. Leave empty to keep them only in the short-lived dataset this run creates. Key: DST_DATASET.
AI Search ranks indexed images by how closely they match your text prompt. Diverse instead spreads the selection across the dataset, taking one image from each group of similar ones. Key: SEARCH_MODE.
Options:
- AI Search (
ai_search) - Diverse (
diverse)
Whole images matched against your prompt, or the individual annotated objects inside them. Object search returns the images those objects sit in and needs a source dataset. Visible when SEARCH_MODE is ai_search. Key: ENTITY_MODE.
Options:
- Images only (
images) - Objects only (
objects)
What you are looking for, in plain words, for example a red car at night. AI Search fails when it is empty. Visible when SEARCH_MODE is ai_search. Key: TEXT_PROMPT.
Lowest match score an image needs to be returned. Raise it for fewer but closer matches. Minimum: 0. Maximum: 1. Step: 0.01. Visible when SEARCH_MODE is ai_search. Key: CONFIDENCE_THRESHOLD.
Most images AI Search returns. Fewer come back when not enough of them clear the confidence threshold. Minimum: 1. Maximum: 10000. Step: 1. Visible when SEARCH_MODE is ai_search. Key: TOP_K.
Number of images Diverse selects, each one standing in for a different group of visually similar images. Minimum: 1. Step: 1. Visible when SEARCH_MODE is diverse. Key: DIVERSE_TOP_K.
Model whose embeddings are searched, which has to be one the images were already indexed with. Auto uses whichever indexed model covers them, preferring PE-Core, then SigLIP 2, then CLIP. Key: EMBEDDING_MODEL.
Options:
- Auto (
auto) - CLIP (
clip) - PE-Core (
pecore) - SigLIP 2 (
siglip2)
Outputs
Key: DATASET.
Hidden dataset containing matches from this run. A rerun writes a new version of it. Shown as an artifact. Key: LAST_RUN.
Number of image assets attached to the new dataset. Shown on the node as a badge. Selecting the badge opens LAST_RUN. Key: SELECTED_IMAGES.
JSON config
Machine-readable node interface for automation and advanced usage.