Skip to content

Commit d01b929

Browse files
committed
docs: fix recall formula label in SQL metrics documentation
The formula on line 20 was incorrectly labeled as 'Precision' when it actually represents the Recall formula (denominator uses 'Total number of rows in reference'). Precision uses rows in response as denominator (line 16). Recall uses rows in reference as denominator (line 20). Fixes #2404
1 parent 09464cf commit d01b929

File tree

1 file changed

+1
-1
lines changed
  • docs/concepts/metrics/available_metrics

1 file changed

+1
-1
lines changed

docs/concepts/metrics/available_metrics/sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ $$
1717
$$
1818

1919
$$
20-
\text{Precision } = {|\text{Number of matching rows in response and reference}| \over |\text{Total number of rows in reference}|}
20+
\text{Recall } = {|\text{Number of matching rows in response and reference}| \over |\text{Total number of rows in reference}|}
2121
$$
2222

2323
By default, the mode is set to `row`, and metric is F1 score which is the harmonic mean of precision and recall.

0 commit comments

Comments
 (0)