> 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/learning-management-system/answer-correctness.md).

# Answer Correctness

{% 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 Answer Correctness Test checks whether the provided answer is correct based on the given context. This test ensures that the response accurately reflects the information found in the context. A higher score indicates a higher degree of correctness in the answer.

**Required Arguments:**

* **List of Chunks of Context**: Sections of the context that contain the correct information against which the answer will be evaluated.
* **Response Received**: The answer generated by the model that is being evaluated for correctness.
* **Threshold for Similarity Index**: A parameter that determines the level of similarity at which the answer is considered correct.

**Score Range:**\
0 (incorrect answer) to 1 (correct answer)

**Interpretation:**\
A higher score suggests that the answer closely matches the correct information provided in the context, indicating a higher level of accuracy. A lower score would indicate that the answer is not aligned with the context and may be incorrect.


---

# 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/learning-management-system/answer-correctness.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.
