cURL
curl --request POST \ --url https://api.traceloop.com/v2/evaluators/execute/html-comparison \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "input": { "html1": "<html><body><h1>Hello, world!</h1></body></html>", "html2": "<html><body><h1>Hello, world!</h1></body></html>" } } '
{ "similarity_score": 0.92 }
Compare two HTML documents for structural and content similarity
Request Body:
input.html1
input.html2
Type "Bearer" followed by a space and JWT token.
Request body
Show child attributes
OK
0.92
Was this page helpful?