v1
latestOpenAPI 3.0.02026-07-1346146138.4 KBevaluators
Execute word-count-ratio evaluator
Calculate the ratio of words 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/word-count-ratio/execute
Request body
Example request
{
"input": {
"denominator_text": "This is a longer input text for comparison",
"numerator_text": "Short response"
}
}Response
OK
Example response
{
"word_ratio": 0.85
}