evaluators
Execute html-comparison evaluator
Changed onCompare two HTML documents for structural and content similarity
Request Body:
- input.html1 (string, required): The first HTML document to compare
- input.html2 (string, required): The second HTML document to compare
post/v2/evaluators/html-comparison/execute
Request
- Base URLhttps://api.traceloop.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"input": {
"html1": "<html><body><h1>Hello, world!</h1></body></html>",
"html2": "<html><body><h1>Hello, world!</h1></body></html>"
}
}Response
OK
Example response
{
"similarity_score": 0.92
}Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking