API Endpoints
Language Detection
This evaluator detects the language of the input and output text to check for example if the generated answer is in the same language as the prompt, or if it’s in a specific expected language.
POST
/
lingua
/
language_detection
/
evaluate
Body
application/json
data
object[]
requiredList of entries to be evaluated, check the field type for the necessary keys
settings
object | null
Evaluator settings, check the field type for what settings this evaluator supports
env
object | null
Optional environment variables to override the server ones
Response
200 - application/json
status
enum<string>
default: processedAvailable options:
processed
score
number
requiredHow many languages were detected
passed
boolean | null
requiredPasses if the detected language on the output matches the detected language on the input, or if the output matches the expected language
details
string | null
Short human-readable description of the result
cost
object | null
raw_response
object
required