POST
/
langevals
/
similarity
/
evaluate

Body

application/json
data
object[]
required

List of entries to be evaluated, check the field type for the necessary keys

env
object | null

Optional environment variables to override the server ones

settings
object | null

Evaluator settings, check the field type for what settings this evaluator supports

Response

200 - application/json
passed
boolean | null
required

Passes if the cosine similarity crosses the threshold for the defined rule

score
number
required

How similar the input and output semantically, from 0.0 to 1.0, with 1.0 meaning the sentences are identical

cost
object | null
details
string | null

Short human-readable description of the result

status
enum<string>
default:
processed
Available options:
processed