Retrieving traces and feedback
PhariaAssistant can create traces that typically include the input and output data from executed tasks. By default, these traces are stored in the PhariaAssistant database.
Users can provide feedback through the PhariaAssistant UI, which is then linked to the corresponding traces, enabling further analysis and improvement.
| Traces and feedback can only be retrieved by a PhariaAssistant user who has administrator permissions. |
Retrieving traces
You can retrieve traces with the traces API endpoint:
curl https://assistant.<your.pharia-ai.domain.com>/api/traces/<trace_id> -H 'Authorization: Bearer <token>'
Retrieving feedback
Each user feedback is tied to one or more traces by its trace_id. It can be retrieved per application endpoint as follows:
curl https://assistant.<your.pharia-ai.domain.com>/api/<application>/feedback -H 'Authorization: Bearer <token>'
To get an overview of all available feedback endpoints, see https://assistant.<your.pharia-ai.domain.com>/api/docs.