Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
The name of the trace
"qa-chatbot"
The slug of the feature in Basalt.
"qa-chatbot"
Deprecated: Use featureSlug instead. The slug of the feature in Basalt.
"qa-chatbot"
The input of the trace
"What is the capital of France?"
The output of the trace
"Paris"
The ideal output of the trace. Used in some evaluators.
Additional metadata to be associated with the trace.
{ "sessionId": "456", "userType": "admin" }
The organization related to the trace. Used to identify the organization of the user that triggered the trace.
{ "id": "123", "name": "ACME" }
The user related to the trace. Used to identify the user that triggered the trace.
{ "id": "123", "name": "John Doe" }
The start time of the trace
"2021-01-01T00:00:00Z"
The end time of the trace
"2021-01-01T00:00:00Z"
The experiment to append the trace to. You must create an experiment before.
{ "id": "123" }
The logs to append to the trace.
[
{
"id": "123",
"type": "generation",
"name": "qa-chatbot",
"startTime": "2021-01-01T00:00:00Z",
"endTime": "2021-01-01T00:00:00Z",
"metadata": { "sessionId": "456", "userType": "admin" }
}
]
The evaluators used to generate the trace.
[{ "slug": "hallucination" }]
The evaluation configuration of the trace.
{ "sampleRate": 0.5 }