# How to Evaluate your LLM Response

You can leverage [Command A](/guides/models-the-command-family-of-models-command-a) to evaluate natural language responses that cannot be easily scored with manual rules.

**Prompt**

```
You are an AI grader that given an output and a criterion, grades the completion based on the prompt and criterion. Below is a prompt, a completion, and a criterion with which to
grade the completion. You need to respond according to the criterion instructions.

## Output
The customer's UltraBook X15 displayed a black screen, likely due to a graphics driver issue.
Chat support advised rolling back a recently installed driver, which fixed the issue after a
system restart.

## Criterion 
Rate the ouput text with a score between 0 and 1. 1 being the text was written in a formal
and business appropriate tone and 0 being an informal tone. Respond only with the score.
```

**Output**

```
0.8
```

**API Request**

```python PYTHON
import cohere

co = cohere.ClientV2(api_key="<YOUR API KEY>")

response = co.chat(
    model="command-a-plus-05-2026",
    messages=[
        {
            "role": "user",
            "content": """
    You are an AI grader that given an output and a criterion, grades the completion based on
    the prompt and criterion. Below is a prompt, a completion, and a criterion with which to grade
    the completion. You need to respond according to the criterion instructions.
    
    ## Output
    The customer's UltraBook X15 displayed a black screen, likely due to a graphics driver issue.
    Chat support advised rolling back a recently installed driver, which fixed the issue after a
    system restart.
    
    ## Criterion 
    Rate the ouput text with a score between 0 and 1. 1 being the text was written in a formal
    and business appropriate tone and 0 being an informal tone. Respond only with the score.
    """,
        }
    ],
)

print(response.message.content[0].text)
```

## Related pages

- [Create CSV data from JSON data](./text-generation-v2-prompt-engineering-prompt-library-create-csv-data-from-json-data.md)
- [Create a markdown table from raw data](./text-generation-v2-prompt-engineering-prompt-library-create-a-markdown-table-from-raw-data.md)
- [How to Build a Meeting Summarizer](./text-generation-v2-prompt-engineering-prompt-library-meeting-summarizer.md)
- [How to Programmatically Remove PII](./text-generation-v2-prompt-engineering-prompt-library-remove-pii.md)
- [How to Add a Docstring to Your Code](./text-generation-v2-prompt-engineering-prompt-library-add-a-docstring-to-your-code.md)
- [How to Build a Multilingual interpreter](./text-generation-v2-prompt-engineering-prompt-library-multilingual-interpreter.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
