Skip to main content

Scores API

You can submit scores and annotations to Latitude programmatically, enabling custom quality signals from your own code, user feedback systems, or external evaluation pipelines.

Custom Scores

Submit custom scores through the scores endpoint:
Each score requires: Scores submitted through this endpoint are automatically categorized as custom scores.

Example

Use Cases

  • User satisfaction ratings: Convert thumbs up/down or star ratings into scores
  • Task completion metrics: Track whether the agent’s output led to a successful outcome
  • Business KPIs: Conversion rates, resolution rates, or other downstream metrics
  • External validation: Results from your own evaluation pipeline or third-party tools

Annotations API

Submit human annotations through the dedicated annotations endpoint:
Use this endpoint when building your own annotation or feedback UI outside of Latitude’s web interface. Annotations submitted through this API appear alongside annotations created in the Latitude UI. Annotations support the same fields as custom scores, plus optional anchor fields for message-level or text-range annotations:

How Scores Feed the System

Once submitted, custom scores and annotations flow through the same reliability pipeline as internally generated scores:
  1. Signal discovery: Failed scores automatically enter the discovery pipeline, where Latitude clusters similar failures into signals
  2. Analytics: Finalized scores appear in time-series dashboards
  3. Alignment: Annotation scores are compared against evaluation scores for the same traces to compute alignment metrics
Custom scores and annotations are first-class citizens. They appear alongside evaluation-generated scores in all dashboards, filters, and analytics views.

Next Steps