lmnr-ai / lmnr

Laminar - open-source all-in-one platform for engineering AI products. Crate data flywheel for you AI app. Traces, Evals, Datasets, Labels. YC S24.
https://www.lmnr.ai
Apache License 2.0
1.19k stars 60 forks source link

labeling queues #156

Closed skull8888888 closed 3 weeks ago

skull8888888 commented 3 weeks ago

[!IMPORTANT] This PR adds functionality for managing labeling queues, including UI components, API endpoints, and database schema changes.

  • Behavior:
    • Add endpoints for creating, moving, and removing items in labeling queues in route.ts files.
    • Implement UI components for managing labeling queues, including Queue, CreateQueueDialog, and Queues.
    • Add CopyToClipboardButton for copying text to clipboard with a toast notification.
  • Database:
    • Add labeling_queue_data table with columns id, created_at, queue_id, action, and span_id.
    • Modify dataset_datapoints table to make target column nullable.
  • UI Components:
    • Add Formatter component for rendering and editing JSON/YAML/text with copy-to-clipboard functionality.
    • Update PipelineSelect to handle pipeline and version selection with loading states.
  • Misc:
    • Update filtersToSql in modifiers.ts to handle additional column definitions.
    • Add LabelingQueue and LabelingQueueData types in queue/types.ts.
    • Add LabelClass and SpanLabel types in traces/types.ts.

This description was created by Ellipsis for 50206160baeaaf09e9358cf8902aaf75b52c49f6. It will automatically update as commits are pushed.