# SummaC

**Objective:**&#x20;

SummaC evaluates summarization models by assessing factual consistency. It uses Natural Language Inference (NLI) techniques to determine if the generated summary logically entails, contradicts, or is neutral with respect to the source text. This approach allows for the detection of factual hallucinations or omissions in the generated summary, focusing on maintaining logical consistency with the original input. SummaC is commonly used for fact-checking in summarization tasks to ensure accurate information representation.

**Required Columns in Dataset:**

`LLM Summary`, `Original Document`

**Interpretation:**

* **High SummaC**: Indicates that the summary is factually consistent with the source, with little to no contradictions or hallucinations.
* **Low SummaC**: Reflects potential factual inconsistencies or logical contradictions between the summary and the original text.

**Execution via UI:**

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

**Execution via SDK:**

```python
metrics=[
    {"name": "SummaC", "config": {"model": "gpt-4o-mini", "provider": "openai"}, "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/summac.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.
