Skip to main content

Quick Wins

  1. Use specific prompts during indexing
  2. Choose the right search type (semantic vs keyword)
  3. Tune thresholds based on your use case
  4. Combine multiple indexes for layered search

Understanding Precision and Recall

The trade-off: Higher precision often means lower recall, and vice versa. Tune based on your priority.

Indexing for Accuracy

Specific Prompts Beat Generic Ones

Match Extraction to Content Type

Time-based extraction example showing consistent frame sampling at regular intervals

Query Strategies

Threshold Tuning


Evaluating Search Quality

Set Up Ground Truth

Create test queries with known correct answers:

Measure Precision and Recall


Advanced Techniques

Layer indexes for precise filtering:

Metadata Filtering

Pre-filter before semantic search:

Post-Processing with LLMs

For complex queries, use an LLM to refine results:

Common Pitfalls


Iterative Improvement

  1. Start broad - Low thresholds, high recall
  2. Evaluate - Check precision on sample queries
  3. Refine - Adjust thresholds, improve prompts
  4. Test - Validate against ground truth
  5. Repeat - Iterate until satisfied

Next Steps

Latency and Cost

Optimize for speed and efficiency

Understanding Artifacts

Better extraction strategies