RAG Retrieval Metrics Calculator

Measure ranked retrieval using relevant document IDs, Precision@K, Recall@K and reciprocal rank.

Your input

Processed in your browser

Loading tool…

Your result

Ready when you are
Enter your input and select Run tool.

About the tool

Measure ranked retrieval using relevant document IDs, Precision@K, Recall@K and reciprocal rank.

Try the built-in example to see the required input format and expected result.

Using the result

The built-in example offers CSV, PDF, TXT download options. Use Copy result when the result includes text or a table.

How to use RAG Retrieval Metrics Calculator

  1. Select Try an example to load sample input, or enter your own details below.
  2. Relevant IDs, one per line Use the example to check the expected format.
  3. Retrieved IDs in rank order Use the example to check the expected format.
  4. Cutoff K Enter a number in the units shown in the label. Minimum: 1.
  5. Select Run tool and review the result. Use Reset to clear your work.

Frequently asked questions

What does RAG Retrieval Metrics Calculator do?

Measure ranked retrieval using relevant document IDs, Precision@K, Recall@K and reciprocal rank.

What input do I need?

Relevant IDs, one per line, Retrieved IDs in rank order, Cutoff K. Select Try an example to see the format.

How can I save my result?

The built-in example offers CSV, PDF, TXT download options. Use Copy result when the result includes text or a table.

Where does the tool process my input?

Tool processing runs in your browser.