Skip to main content

Retrieving traces and feedback

PhariaAssistant by default stores traces in its database, which typically include input and output data from executed tasks. Trace collection can be disabled by setting env.PERSIST_TRACES: false (see Helm Chart).

Users can provide feedback through the UI, which is then linked to the corresponding traces, enabling further analysis and improvement.

info

Traces and feedback can only be retrieved by an Assistant user that has Admin permissions.

Retrieving traces

You can retrieve the corresponding traces via the traces 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 via its trace_id. It can be retrieved per application endpoint. To get an overview over all available feedback endpoints go to https://assistant.<your.pharia-ai.domain.com>/api/docs

The feedback can then be retrieved via:

curl https://assistant.<your.pharia-ai.domain.com>/api/<application>/feedback -H 'Authorization: Bearer <token>'