Quick Reference
Indexing Cost Factors
Frame Count and Scene Interval
Configure sampling and finite-video time segmentation during Understand. Fewer windows and frames reduce the amount of visual analysis; select the configuration that preserves the context your retrieval needs.Scene Interval
Shorter intervals create more artifact records and more visual-analysis work. Use a longer interval when broad topic coverage is sufficient; use a shorter interval when activity changes quickly.Indexing Latency
Time-Based vs Shot-Based
Shot segmentation adds boundary detection work, but can produce more natural units for edited content. Use
segmentation={"type": "shot", "threshold": ...} when those boundaries matter.
Async Processing
Understanding and semantic indexing are background jobs. Wait for the finite understanding before retrieving its analyzer, and wait for the index before semantic retrieval:Search Latency
Single Video vs Collection
Reduce Search Space
Select the semantic index and apply indexed filters when your schema supports them:Limit Results
Optimization Strategies
Tiered Indexing
The two distinct analyzer/index pairs above keep a low-cost discovery view separate from a detailed retrieval view. Search the appropriate returned index ID for the user request; do not merge the jobs unless one artifact is sufficient for the lesson or product behavior.Index on Demand
Create the artifact required by the requested feature, then index it once:Batch Processing
For large libraries, schedule bounded background work and retain the returned IDs so a completed analyzer artifact is indexed instead of recomputed:Cost Estimation
Factors
- Video duration - Longer videos create more time windows or shots.
- Frame sampling - More frames increase visual-analysis work.
- Segmentation interval - Shorter intervals create more artifact records.
- Collection size - More videos require more background jobs.
Example Calculations
Recommendations by Use Case
Media Archive (Cost-Sensitive)
Use a named transcript artifact and a low-frequency visual artifact when the library needs broad coverage:Security Monitoring (Quality-First)
For a finite review video, use a short time interval and enough frames to capture activity progression:E-commerce (Balanced)
Use shot segmentation when the video is edited around product reveals:Monitoring
Measure the complete lifecycle rather than only request submission:Next Steps
Accuracy Tips
Improve search precision
Create an Index
Get started with indexing