v1
latestOpenAPI 3.0.02026-07-1346146138.4 KBevaluators
Execute char-count-ratio evaluator
Calculate the ratio of characters between two texts
Request Body:
- input.numerator_text (string, required): The numerator text (will be divided by denominator)
- input.denominator_text (string, required): The denominator text (divides the numerator)
post/v2/evaluators/char-count-ratio/execute
Request body
Example request
{
"input": {
"denominator_text": "This is a longer text for comparison",
"numerator_text": "Short text"
}
}Response
OK
Example response
{
"char_ratio": 0.75
}