cURL
curl --request POST \ --url https://api.traceloop.com/v2/evaluators/execute/char-count-ratio \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "input": { "denominator_text": "This is a longer text for comparison", "numerator_text": "Short text" } } '
{ "char_ratio": 0.75 }
Calculate the ratio of characters 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.75
Was this page helpful?