Summary

  • Adds the ability to select multiple traces/spans in a project and annotate them all at once with feedback scores
  • New BatchAnnotateDialog component shows all configured feedback definitions (numerical, boolean, categorical) and lets users set scores to apply to all selected items
  • New Annotate button (PenLine icon) in the traces action toolbar, enabled when rows are selected
  • Scores are applied in parallel using the existing per-trace feedback score API

This addresses the feature request for production LLM-based app workflows where users apply filters and then want to annotate many traces at once instead of going one by one.

Files Changed

  • apps/opik-frontend/src/components/pages-shared/traces/BatchAnnotateDialog/BatchAnnotateDialog.tsx (new) - Dialog component with inline score editors for each feedback definition
  • apps/opik-frontend/src/components/pages/TracesPage/TracesSpansTab/TracesActionsPanel.tsx (modified) - Added Annotate button and BatchAnnotateDialog integration

How It Works

  1. User selects one or more traces/spans using the checkbox column
  2. The Annotate button (pen icon) becomes enabled in the toolbar
  3. Clicking it opens a dialog listing all feedback definitions with score inputs
  4. User sets values for one or more feedback scores
  5. Clicking “Apply” sends the scores to all selected traces/spans in parallel
  6. A success toast confirms the operation

Test plan

  • Select multiple traces in a project, click Annotate button, verify dialog opens with feedback definitions
  • Set numerical, boolean, and categorical scores in the dialog
  • Click Apply and verify scores are applied to all selected traces
  • Verify the button is disabled when no rows are selected
  • Verify the dialog shows an appropriate message when no feedback definitions exist
  • Verify it works for both traces and spans tabs

/claim #1010

🤖 Generated with Claude Code

Claim

Total prize pool $100
Total paid $0
Status Pending
Submitted February 17, 2026
Last updated February 17, 2026

Contributors

28

285729101

@285729101

100%

Sponsors

MO

molaminsillah05

@molaminsillah05

$50
CO

Comet

@comet-ml

$50