Skip to content

F1

Harmonic mean of precision and recall.

Overview

Field Value
Type Retrieval
Range [0, 1]
Higher is better Yes

Formula

\[F1@k = 2 \cdot \frac{Precision@k \cdot Recall@k}{Precision@k + Recall@k}\]

Interpretation

Score Meaning
1.0 Perfect precision and recall
0.8 Good balance
0.5 Moderate performance
0.0 Complete failure

When to Use

Use when you need a single metric that balances both precision and recall.

Configuration

_target_: autorag_research.evaluation.metrics.retrieval.F1Config