search_depth parameter controls how Snipex’s extraction engine approaches each page. It’s a trade-off between speed, coverage, and confidence.
Modes
precise
Focuses on the highest-confidence matches. Returns fewer snippets but with tighter relevance. Fastest mode.
balanced
The default. A good mix of speed, coverage, and confidence — suitable for most use cases.
exhaustive
Maximises the number of snippets extracted per page. Best when you need comprehensive coverage at the cost of slightly more latency.
When to use each
| Use case | Recommended depth |
|---|---|
| Quick answer / fact lookup | precise |
| General-purpose RAG pipeline | balanced |
| Research / comprehensive coverage | exhaustive |
| Real-time UX (latency-sensitive) | precise |
| Offline batch processing | exhaustive |
Example
Effect on max_snippets_per_result
search_depth works in conjunction with max_snippets_per_result (default: 3, max: 5). In exhaustive mode, the engine will try harder to find up to the maximum number of snippets per page. In precise mode, it may return fewer snippets than the maximum if confidence thresholds aren’t met.