> ## Documentation Index
> Fetch the complete documentation index at: https://www.getmaxim.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ROUGE-1

> Measures summary quality by calculating the overlap of unigrams (individual words) between the generated and reference texts. It focuses on basic content coverage.

### Input

* **`output`** (str): The generated text
* **`expectedOutput`** (str): The reference text

### Output

* **`Result`** (float): A score between 0 and 1.

## Interpretation

* **Higher scores (closer to 1)**: Better unigram overlap with the reference (more content coverage)
* **Lower scores (closer to 0)**: Poor unigram overlap

## Formula

$$
\mathrm{ROUGE\text{-}1} = \frac{\text{Count of overlapping unigrams}}{\text{Total unigrams in reference}}
$$

<Note>This is a **Similarity** Metric</Note>

## Use Cases

* Evaluating automatic text summarization
* Assessing machine translation quality
