cURL
curl --request POST \ --url https://api.lytix.co/beta/api/v1/evaluateBot \ --header 'Content-Type: application/json' \ --header 'lx-api-key: <api-key>' \ --data '{ "conversation": [ { "role": "<string>", "content": "<string>" } ], "context": {}, "version": "<string>", "sessionId": "<string>" }'
{ "finalGrade": {}, "allGrades": {} }
Evaluates a conversation based on a set of known criteria see here for a full example.
Conversation to evaluate
Name of the identifier to use on the Lytix platform
Show child attributes
Mapping between 'role' and ground truth context (e.g. the ground truth for the bot)
Version of the session to evaluate
Session Id to associate with the IO event
Model IO response
Map between 'role' and final grade on the conversation
Mapping between 'role' and grade on individual messages