How intelligent search works
Intelligent search sits above the direct retrieval methods. Your application describes the goal, and VideoDB handles the retrieval plan.Ways to use intelligent search
The right intelligent method depends on the outcome the user wants. Consider a collection of customer interviews.Find the relevant moments
Investigate and refine
Explain the findings
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.
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
Useask() when the desired output is an answer rather than a list of matching moments.
include_sources=True, the response includes the timestamped moments used as evidence:
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.