rate metric hit
**Hit rate** is the **binary retrieval success metric measuring the fraction of queries where at least one relevant result appears within a specified top-k cutoff** - it provides an intuitive view of retrieval reliability.
**What Is Hit rate?**
- **Definition**: Percentage of queries with one or more relevant documents in top-k results.
- **Metric Relation**: Equivalent to recall-at-k in single-ground-truth settings.
- **Interpretability**: Simple pass-fail signal for evidence availability.
- **Use Context**: Common in recommendation, search, and RAG retrieval monitoring.
**Why Hit rate Matters**
- **Coverage Confidence**: Indicates how often the retriever gives generation a chance to succeed.
- **Operational Tracking**: Easy KPI for non-technical stakeholders and dashboards.
- **Regression Detection**: Sharp drops signal retrieval pipeline degradation.
- **Threshold Planning**: Helps choose top-k budget that meets reliability targets.
- **Safety Relevance**: Low hit rate encourages unsupported generation fallback risk.
**How It Is Used in Practice**
- **K-Sweep Curves**: Plot hit rate versus k to find practical saturation points.
- **Segment Breakdown**: Monitor by query class to detect domain-specific blind spots.
- **Joint Metrics**: Pair with precision and rank metrics to avoid over-optimizing binary success alone.
Hit rate is **a fundamental retrieval reliability indicator** - while simple, it is crucial for confirming that relevant evidence is consistently available to downstream RAG generation.