> 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/information-extraction/subjective-question-correction.md).

# Subjective Question Correction

Detect the errors in subjective question handling. Improve model performance on open-ended or opinion-based tasks.

**Objective:**&#x20;

The SQC Score evaluates generative models by measuring their ability to transform incorrectly or ambiguously phrased questions into valid ones. It uses both syntactic and semantic criteria to assess how well the model corrects and reframes user inputs. A high score reflects strong contextual understanding and linguistic alignment between the generated question and expected output, important for enhancing user interaction in query-driven systems.

**Required Columns in Dataset:**

`Prompt`, `Expected Response (GT)` , `LLM Response`

**Interpretation:**

* **High SQC Score**: Reflects that the model successfully corrects ambiguous or flawed questions, offering outputs that are aligned with the desired user intent.
* **Low SQC Score**: Indicates poor performance in understanding or reformulating incorrect questions, potentially leading to irrelevant or incoherent corrections.

**Execution via UI:**

<figure><img src="https://1811327582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYbIiNdp1QbG4avl7VShw%2Fuploads%2FncP1gvCNHnUF5xdMOH6f%2Fimage.png?alt=media&amp;token=20fc3df1-e245-40e0-8a66-37f4d7cf461c" alt=""><figcaption></figcaption></figure>

**Execution via SDK:**

```python
metrics=[
    {"name": "SQCScore", "config": {"model": "gpt-4o-mini", "provider": "openai"}, "column_name": "your-text", "schema_mapping": schema_mapping}
]
```
