Skip to main content

Fetching Trace ID

The main parameter needed is a Trace ID. This corresponds to the ID returned by the Get Config or Invoke Deployment calls.

Creating a Feedback

There are multiple Properties usable to create feedback.
PropertyValuestype
ratinggoodor badarray
defectsgrammatical spelling hallucination repetition innapropriate off_topic incompleteness ambiguityarray
interactionssaved selected deleted shared copied reportedarray
correctionCorrection Textstring

Examples

Issue a bad rating:
{
  "property": "rating",
  "trace_id": "<trace_id>",
  "value": [
    "bad"
  ]
}
Issue grammatical and ambiguity defects:
{
  "property": "defects",
  "trace_id": "<trace_id>",
  "value": [
    "grammatical",
    "ambiguity"
  ]
}

Making a correction

You can use the same endpoint/SDK call to issue a correction on a generation.
{
  "property": "corrections",
  "trace_id": "<trace_id>",
  "value": "Correction Text"
}