# ROUGE

**Objective:**&#x20;

ROUGE measures the overlap of n-grams, sequences, or words between a machine-generated summary and a reference summary. It includes variants like ROUGE-N (n-gram overlap), ROUGE-L (longest common subsequence), and ROUGE-W (weighted LCS). ROUGE is primarily used for evaluating summarization tasks, focusing on recall by assessing how much relevant content in the reference summary is captured in the generated output. This metric is widely used due to its simplicity and ability to handle various granularities of comparison.

**Required Columns in Dataset:**

`LLM Summary`, `Reference Document (GT)`

**Interpretation:**

* **High ROUGE**: Indicates strong overlap between the generated text and the reference text, suggesting the system captures relevant content.
* **Low ROUGE**: Suggests poor alignment with the reference text, possibly missing key information or using different phrasing.

**Execution via UI:**

<figure><img src="/files/SNAKbOI18jhWZSt9gfXm" alt=""><figcaption></figcaption></figure>

ROUGE does not require an LLM for computation.

**Execution via SDK:**

```python
metrics=[
    {"name": "ROUGE", "column_name": "your-text", "schema_mapping": schema_mapping}
]
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.raga.ai/ragaai-catalyst/ragaai-metric-library/text-summarization/rouge.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
