cURL
curl --request POST \ --url https://api.traceloop.com/v2/evaluators/execute/word-count-ratio \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "input": { "denominator_text": "This is a longer input text for comparison", "numerator_text": "Short response" } } '
{ "word_ratio": 0.85 }
Calculate the ratio of words between two texts
Request Body:
input.numerator_text
input.denominator_text
Type "Bearer" followed by a space and JWT token.
Request body
Show child attributes
OK
0.85
Was this page helpful?