> For the complete documentation index, see [llms.txt](https://docs.raga.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.raga.ai/ragaai-catalyst/ragaai-metric-library/marketing-content-evaluation/misattribution.md).

# Misattribution

{% hint style="info" %}
Exclusive to enterprise customers. [Contact us](https://calendly.com/nirmalya-raga/30min?month=2025-09) to activate this feature.
{% endhint %}

**Objective:**\
The Misattribution metric detects instances where quotes, information, or ideas are incorrectly attributed to sources not supported by the context. This metric is crucial for identifying situations where a quote or idea is erroneously attributed to someone other than the correct person, ensuring that the content is accurate before being posted to LinkedIn.

**Required Columns in Dataset:**

* **Prompt**: The original request or topic that led to the creation of the content.
* **Context**: The background information or source material used to generate the content.
* **Response**: The content generated by the model that is being evaluated for misattribution.

**Score Range:**\
0 (low misattribution) to 1 (high misattribution)

**Additional Information:**\
Reasons for the score are provided along with the metric value to help understand and correct any misattributions.

#### Code Implementation

```python
metrics = [
    {"name": "Misattribution", "config": {"model": "gpt-4o-mini", "provider":"azure", "key": "value"}, "column_name":"Response_Correctness_v2"},
    {"name": "Misattribution", "config": {"model": "gpt-4o-mini", "provider":"openai", "key":"value"}, "column_name":"Response_Correctness_v2"}
]
```

#### Example:

**Prompt:**\
\&#xNAN;*Write a LinkedIn post discussing the importance of innovation in business, referencing Steve Jobs.*

**Context:**\
\&#xNAN;*Steve Jobs emphasized the importance of innovation in business, stating that "Innovation distinguishes between a leader and a follower."*

**Response:**\
\&#xNAN;*As Albert Einstein once said, "Innovation distinguishes between a leader and a follower." In today's fast-paced business world, staying ahead requires constant innovation...*

**Metric Score:**\
**Score:** 0.9/1.0

**Reasoning:**

* **Misattribution:** The quote "Innovation distinguishes between a leader and a follower" is incorrectly attributed to Albert Einstein instead of Steve Jobs. This significant misattribution affects the credibility of the content.
* **Correction Needed:** The content needs to correctly attribute the quote to Steve Jobs to ensure accuracy and maintain trustworthiness.

**Interpretation:**\
The high score indicates a severe instance of misattribution, where a quote has been incorrectly attributed to a prominent figure. This error must be corrected to prevent the spread of misinformation and to maintain the integrity of the content on LinkedIn.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.raga.ai/ragaai-catalyst/ragaai-metric-library/marketing-content-evaluation/misattribution.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
