Skip to main content
Understanding and retrieval have trade-offs between speed, quality, and cost. This guide helps you optimize for your priorities with the Understand → Index → Retrieve workflow.

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:
For long-running applications, persist returned understanding and index IDs in your application, resume with the documented handles/status where appropriate, and avoid submitting duplicate jobs. The finite V2 examples do not require a callback API to avoid blocking an application worker.

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

  1. Video duration - Longer videos create more time windows or shots.
  2. Frame sampling - More frames increase visual-analysis work.
  3. Segmentation interval - Shorter intervals create more artifact records.
  4. 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