Skip to main content
Search lets you locate exact moments across thousands of hours of video using natural language or an image reference. Results are split into three specialized buckets—embeddings, transcript, and ocr— So you can quickly see why something matched. The path to use search:
To search with natural language:
Where num_args are the max number of results returned and is optional. To search with an image:
If both an image and query are supplied, the image will take precedence. Using a Subindex will isolate a search a subset of the videos in an index. To use it:
where the subindex is a list of video IDs to search within.

Search Response Format

Search returns a list of match objects. The match object schema is:
string
Moonshine-assigned file_ide.g. FHXYU838JHDWK.mp4

Search JSON

Workflows are in a private beta. Please contact us at team@usemoonshine.com to request access.
string
required
Name/ID of the parent index to search.
string
Natural-language text.
Ignored if image is supplied.
string
Local file path or public URL to an image used as the search reference.
List[str]
An optional list of file_idto narrow the search scope.
int
Max results per result-type bucket.