Test the length of your prompt responses with flexible measurement options.
Tokens
: Exact token usage returned by your LLM provider for the prompt response.Words
: Count the number of words in your prompt response. A word is defined as any sequence of characters separated by whitespace.Characters
: Count the number of characters in your prompt response.Select the Response Length evaluation from the Add evaluator action menu.
Link the dataset and provide the evaluation threshold using the comparison operator and measurement unit.
Less than
: Responses must be shorter than your limitgreater than
: Responses must be longer than your minimumequal to
: Responses must match your exact length requirementExecute the evaluation and see the results.