In this article
The visible span and its API identifiers are related, but their representations are not interchangeable across every Phoenix interface.
Identify the operation receiving feedback
A user rating can be valid but attached to a neighboring model call instead of the answer the user saw. Phoenix’s feedback guide describes associating annotations with logged spans. Capture the intended span identity at the application boundary where feedback is linked to the displayed result. Do not substitute a currently active span merely because it is convenient when the user submits the rating later.
Match the identifier to the API
The documented REST annotation examples use an OpenTelemetry hexadecimal span identifier. The guide explicitly distinguishes that from the GraphQL global identifier required by the corresponding GraphQL mutation. A string copied from a UI or another endpoint may therefore be the wrong representation. Inspect the receiving API contract and retain the relationship between identifiers instead of assuming that any value called an ID is accepted everywhere or identifies the same object in the same way.
Preserve what the annotation means
An annotation can carry a label, numeric score or explanation and an annotator kind. The UI annotation guide additionally describes categorical, continuous and freeform configurations and optimization direction. A larger score is not universally better, and a category is not automatically an ordered quantity. Keep the scale and source explicit so a user preference is not silently reinterpreted as factual correctness or a code-generated check as human review.
Keep document feedback at its own target level
The document-annotation reference uses an additional position inside a retrieval span. Rating a retrieved passage is therefore a different target from rating the entire model answer. Choose the target level that matches the question asked of the annotator. A generic feedback widget should not imply passage relevance when it only asks whether the final answer was helpful; those labels can disagree for legitimate reasons.
Verify attachment before analyzing trends
Use a diagnostic conversation with several model and retrieval operations, attach a known rating, then inspect the intended object’s annotation. Check identifier representation, annotation name and scale together. The guides to document-position lineage and conversation evidence provide related controls. Accept the integration when feedback can be traced from the displayed answer to the precise stored target, preserving the difference between collecting a valid opinion and attaching that opinion to the correct operation for later analysis.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.