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.18k stars 59 forks source link

write labels to clickhouse #204

Closed dinmukhamedm closed 2 weeks ago

dinmukhamedm commented 2 weeks ago

[!IMPORTANT] This PR adds functionality to write and delete label values in Clickhouse alongside Postgres, fixes frontend label validation, and addresses a UI warning.

  • Behavior:
    • Write label values to Clickhouse in insert_or_update_label() in labels/mod.rs and record_labels_to_db() in traces/utils.rs.
    • Delete label values from Clickhouse in delete_span_label() in routes/labels.rs.
    • Fix frontend validation for label value existence in add-label-popover.tsx.
    • Fix frontend warning about nested <p> tags in evaluator-editor-dialog.tsx.
  • Database:
    • Add labels table to Clickhouse in 001000-initial.sql.
  • Misc:
    • Remove unused import in datasets.rs.

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