Skip to content

Prompt in search() and search_all() ignored, returns all images in dataset instead #360

Open
@03vmate

Description

@03vmate
rf = roboflow.Roboflow(api_key=API_KEY)
workspace = rf.workspace(WORKSPACE)
project = workspace.project(PROJECT_ID)

filename = "vlcsnap-2024-08-28-19h46m52s829.png"

results = []
for result in project.search_all(prompt=f'filename:"{filename}"'):
    results.extend(result)
print(len(results))

Running the code above returns every single image in the dataset, instead of just the one with the specific filename. Using the same query in the web UI returns the correct image:

loading Roboflow workspace...
loading Roboflow project...
5887

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions