# MINEA

**Objective:**&#x20;

MINEA assesses information extraction models by measuring the accuracy of identifying rare but critical information (the "needles") from large datasets (the "haystack"). It uses a combination of rarity detection and contextual extraction to evaluate how well a model pulls specific, infrequent data points. A high MINEA score implies the model successfully extracts crucial, rare information without being overwhelmed by more common or irrelevant data.

**Required Columns in Dataset:**

`Labeled Text`, `Source Document`

**Interpretation:**

* **High MINEA**: Indicates that the model excels at identifying rare and crucial pieces of information, even when they are hidden within a large volume of irrelevant or common data.
* **Low MINEA**: Suggests the model struggles to detect infrequent yet important details, leading to potential information gaps in extraction.

**Execution via UI:**

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

**Execution via SDK:**

```python
metrics=[
    {"name": "MINEA", "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/information-extraction/minea.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.
