Feature: Query Search Images in a Dataset #388
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
This PR adds
query()
andquery_all()
methods to enable query search across images in a dataset using Roboflow's/search/v1
endpoint. These methods support flexible search queries (e.g., by filename, tags, or project name) and allow users to:pageSize
andcontinuationToken
.query_all
) or retrieve a single page (query
).This enhancement improves dataset navigation and filtering by allowing more expressive, programmatic image searches within a project.
It addresses the issue discussed in #360 by providing a querying interface for image datasets.
List any dependencies that are required for this change:
This change does not introduce any new dependencies; it uses only existing libraries already required by the project.
Type of change
How has this change been tested, please provide a testcase or example of how you tested the change?
The change was tested with the following example script, which performs a semantic search for images by filename in a dataset using the new
query_all
andquery
methods. It loads necessary queries all matching images in pages, collects the results, and prints the total count along with sample entries:Any specific deployment considerations
N/A
Docs
query
andquery_all
functions were added)