API reference for the /feedback
endpoint.
POST /feedback
/feedback
endpoint assigns feedback to a particular inference or episode.
Each feedback is associated with a metric that is defined in the configuration file.
dryrun
true
, the feedback request will be executed but won’t be stored to the database (i.e. no-op).
This field is primarily for debugging and testing, and you should ignore it in production.
episode_id
episode
episode
.
Only use episode IDs that were returned by the TensorZero gateway.
inference_id
inference
inference
.
Only use inference IDs that were returned by the TensorZero gateway.
metric_name
[metrics.draft_accepted]
in your configuration file, then you would set metric_name: "draft_accepted"
.
The metric names comment
and demonstration
are reserved for special types of feedback.
A comment
is free-form text (string) that can be assigned to either an inference or an episode.
The demonstration
metric accepts values that would be a valid output.
See Metrics & Feedback for more details.
tags
{"user_id": "123"}
or {"author": "Alice"}
.
value
type = "boolean"
).
feedback_id
Inference-Level Boolean Metric
Episode-Level Float Metric