Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Ask questions over indexed video or collection context.
POST /video/{video_id}/ask/ POST /collection/{collection_id}/ask/
ask()
question
top_k
15
mode
"default"
include_sources
false
index_name
index_names
index_id
index_ids
answer = collection.ask( question="Which brands are mentioned and what is said about them?", top_k=15, mode="default", include_sources=True, ) print(answer.answer) for source in answer.sources: print(source.video_id, source.start, source.end)
AskResponse
answer
sources
Shot
include_sources=True