一键导入
kuavi-deep-search
Multi-pass search with query refinement for hard-to-find video content. Use when initial search returns low-confidence results or no matches.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Multi-pass search with query refinement for hard-to-find video content. Use when initial search returns low-confidence results or no matches.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Compositional pixel analysis patterns using kuavi_eval for counting, motion detection, change tracking, and visual comparison. Use when questions require precise measurements, object counting, or frame-by-frame comparison.
Full end-to-end video analysis with KUAVi
Multi-video corpus indexing and cross-video search
Deep multi-pass video analysis with parallel sharding and zoom
Index a video file for KUAVi analysis
Predictive video understanding — anticipate actions, predict future content, verify coherence, classify activities
| name | kuavi-deep-search |
| description | Multi-pass search with query refinement for hard-to-find video content. Use when initial search returns low-confidence results or no matches. |
When a simple kuavi_search_video call returns poor results (scores < 0.3 or no relevant matches), escalate through these refinement passes.
Try different search fields — the same query may match differently depending on how content was indexed:
kuavi_search_video("your query", field="summary", top_k=5)
kuavi_search_video("your query", field="action", top_k=5)
kuavi_search_video("your query", field="visual", top_k=5)
kuavi_search_video("your query", field="temporal", top_k=5)
If field="summary" misses, field="visual" may catch it through raw frame embeddings.
Rephrase the query with synonyms, more general terms, or more specific terms:
| Original | Reformulations |
|---|---|
| "person cooking pasta" | "making food", "kitchen activity", "preparing meal" |
| "final score" | "scoreboard", "results table", "end of game" |
| "presenter introduction" | "title slide", "speaker name", "opening remarks" |
Try 2-3 reformulations across different fields.
Switch from visual to audio modality:
kuavi_search_transcript("keyword from question")
Transcript search is keyword-based — use specific nouns, names, or distinctive terms rather than descriptions.
Search at coarser temporal granularity for broad localization:
kuavi_search_video("query", field="all", level=1, top_k=5)
Level 1 segments are ~30s chunks. Once you find the right region, search again at level 0 within that range.
As a last resort, compute similarity against ALL segments programmatically:
kuavi_eval("""
scenes = get_scene_list()
best_score = -1
best_scene = None
for s in scenes:
# Check caption content directly
caption = s.get('caption', '') + ' ' + str(s.get('annotation', ''))
if 'keyword' in caption.lower():
print(f"Direct match: scene {s['scene_index']} at {s['start_time']:.1f}s")
print(f" Caption: {caption[:200]}")
""")
If you know when the content is NOT (e.g., "not in the first half"), search only the remaining region:
kuavi_eval("""
# Search only the second half of the video
scenes = get_scene_list()
mid = scenes[-1]['end_time'] / 2
late_scenes = [s for s in scenes if s['start_time'] > mid]
for s in late_scenes:
print(f"Scene {s['scene_index']}: {s['start_time']:.1f}-{s['end_time']:.1f}s: {s.get('caption', '')[:100]}")
""")
Initial search (field="all") → scores > 0.4? → DONE
↓ no
Field rotation (summary/action/visual/temporal) → found? → DONE
↓ no
Query reformulation (3 variants) → found? → DONE
↓ no
Transcript search → found? → DONE
↓ no
Hierarchy level 1 search → found region? → search level 0 within region → DONE
↓ no
Exhaustive scan via kuavi_eval → found? → DONE
↓ no
Report: "Content not found after exhaustive search across all fields and modalities."
Each pass costs budget. Stop as soon as you find relevant results. Do not run all passes if pass 1 succeeds.