# Conciseness

Evaluator to assess how concise and to-the-point an answer is.

The Conciseness evaluator measures whether an LLM's answer is appropriately brief and direct without unnecessary verbosity. This metric is important for ensuring that responses are efficient and don't waste users' time with irrelevant details or excessive elaboration.

Key Features:

* **Conciseness Assessment**: Determines if the answer is appropriately brief
* **Binary Scoring**: Returns 1.0 for concise answers, 0.0 for verbose ones
* **Detailed Reasoning**: Provides explanation for the conciseness assessment
* **Fiddler API Integration**: Uses Fiddler's built-in conciseness evaluation model

Use Cases:

* **Customer Support**: Ensuring responses are direct and helpful
* **Technical Documentation**: Verifying explanations are clear and brief
* **Educational Content**: Checking if explanations are appropriately detailed
* **API Responses**: Ensuring responses are efficient and focused

Scoring Logic:

* **1.0 (Concise)**: Answer is appropriately brief and to-the-point
* **0.0 (Verbose)**: Answer is unnecessarily long or contains irrelevant details

## Parameters

* **response** (*str*) – The LLM's response to evaluate for conciseness.
* **model** (*str*)
* **credential** (*str* *|* *None*)
* **kwargs** (*Any*)

## Returns

A Score object containing:

* value: 1.0 if concise, 0.0 if verbose
* label: String representation of the boolean result
* reasoning: Detailed explanation of the assessment

**Return type:** Score

## Example

```python
from fiddler_evals.evaluators import Conciseness
evaluator = Conciseness()
```

```python
# Concise answer
score = evaluator.score("The capital of France is Paris.")
print(f"Conciseness: {score.value}")  # 1.0
print(f"Reasoning: {score.reasoning}")

# Verbose answer
score = evaluator.score(

    "Well, that's a great question about France. Let me think about this…"
    "France is a beautiful country in Europe, and it has many wonderful cities…"
    "The capital city of France is Paris, which is located in the north-central part…"

)
print(f"Conciseness: {score.value}")  # 0.0
```

{% hint style="info" %}
This evaluator uses Fiddler's built-in conciseness assessment model and requires an active connection to the Fiddler API.
{% endhint %}

## name *= 'conciseness'*

## score()

Score the conciseness of an answer.

### Parameters

| Parameter  | Type  | Required | Default | Description                                       |
| ---------- | ----- | -------- | ------- | ------------------------------------------------- |
| `response` | `str` | ✓        | `-`     | The `LLM`'s response to evaluate for conciseness. |

### Returns

A Score object containing:

* value: 1.0 if concise, 0.0 if verbose
* label: String representation of the boolean result
* reasoning: Detailed explanation of the assessment

**Return type:** Score


---

# 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.fiddler.ai/api/fiddler-evals-sdk/evaluators/conciseness.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.
