Precision (AI metric)
The share of returned results that are actually correct: of everything the system flagged or retrieved, how much was right.

Precision is the share of a system’s positive answers that are actually correct: true positives divided by everything it flagged or returned as positive. A spam filter with high precision rarely puts a good email in spam; a search with high precision returns few irrelevant passages.
The counts come from the confusion matrix: true positives over true plus false positives. Precision says nothing about what was missed, which is what recall measures, and pushing one up usually pulls the other down. A model that flags only the one case it is surest of can score 100% precision and still be useless. Most classifiers output a score, and the threshold you pick moves the balance between the two. In search and RAG it is often reported as precision@k: the share of relevant items among the first k results. Google’s machine learning course walks through the arithmetic.
Precision matters most when a false alarm is expensive: blocking a legitimate payment, sending a customer a wrong answer, waking someone up at night. For one number that balances it with recall, see the F1 score. For RAG retrieval, context precision applies the same idea to the ranking of retrieved chunks.
Sources
- Google: Classification: Accuracy, recall, precision, and related metrics developers.google.com
Related terms
- Recall (AI metric): The share of all correct items that the system actually found: of everything it should have caught, how much it did.
- F1 score: One number that combines precision and recall as their harmonic mean, so it is high only when both are high.
- Confusion matrix: A table that counts a classifier’s right and wrong decisions by type: true and false positives, true and false negatives.
- Context precision: A RAG retrieval metric: whether the passages relevant to the question are ranked at the top of what was retrieved.
- Evals: A repeatable test set that scores an AI feature, so changes can be measured instead of guessed.
- Ground truth: The known correct answers or labels that a model’s output is compared against in an evaluation.
