API Endpoints
Off-Topic Detection
This evaluator checks if the user message is concerning one of the allowed topics of the chatbot
Env vars: OPENAI_API_KEY, AZURE_API_KEY, AZURE_API_BASE
POST
/
langevals
/
off_topic
/
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
requiredConfidence level of the intent prediction
passed
boolean | null
default: trueIs the message concerning allowed topic
details
string | null
default: 1.0 confidence that the actual intent is otherPredicted intent of the message and the confidence
cost
object | null