Skip to main content
Use intelligent search when you know the goal, but do not want to manually choose indexes and retrieval methods. VideoDB interprets the request, plans retrieval over available indexes, and returns timestamped evidence or a grounded answer.

How intelligent search works

Intelligent search sits above the direct retrieval methods. Your application describes the goal, and VideoDB handles the retrieval plan.
The plan can draw on several indexed signals, such as spoken words, scene descriptions, objects, brands, OCR, and custom structured fields. Results retain their source video and timestamps, so the output remains connected to playable evidence. The right intelligent method depends on the outcome the user wants. Consider a collection of customer interviews.

Find the relevant moments

Use Search when the result should be ranked, timestamped moments or an aggregate selected from the request.

Investigate and refine

Use DeepSearch when the task benefits from multiple retrieval steps, clarification, or follow-up questions.

Explain the findings

Use Ask when the application needs a synthesized answer with optional source moments.

Search responses

search() returns a SearchResponse because the planned result can take more than one form. Compile matching moments into one stream through the nested SearchResult:

DeepSearch: multi-step investigation

Use DeepSearch when one retrieval step is unlikely to be enough, or when a user needs to refine the result through follow-up requests.
Continue the investigation with the returned session ID:
DeepSearch responses can include: For example, DeepSearch might ask:
Which product line or time period should I focus on?
Answer by continuing the same DeepSearch session:
DeepSearch supports top_k, session_id, and return_fields. Filters, sorting, score thresholds, planner traces, and index selectors are not supported in DeepSearch mode.

Ask: answers grounded in video

Use ask() when the desired output is an answer rather than a list of matching moments.
When include_sources=True, the response includes the timestamped moments used as evidence:
Ask is available at both scopes:

Choose an intelligent method

Next steps

Direct Retrieval

Use semantic search, query, and aggregation directly.

Results and Evidence

Work with shots, timestamps, returned fields, and streams.