In the field of information retrieval, precision is the fraction of retrieved documents that are relevant to the query: .
Precision takes all retrieved documents into account, but it can also be evaluated at a given cut-off rank, considering only the topmost results returned by the system.