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

query table evaluation_results with timestamp #189

Closed dinmukhamedm closed 3 weeks ago

dinmukhamedm commented 3 weeks ago

[!IMPORTANT] Update evaluation score handling by renaming table and adding timestamp serialization in evaluation_scores.rs and route.ts.

  • Database Changes:
    • Change table name from old_evaluation_scores to evaluation_scores in evaluation_scores.rs and route.ts.
    • Add serialize_timestamp function in evaluation_scores.rs to serialize timestamp as nanoseconds.
  • Functionality:
    • Update insert_evaluation_scores, get_average_evaluation_score, get_evaluation_score_buckets_based_on_bounds, and get_global_evaluation_scores_bounds to use evaluation_scores table.
    • Modify POST function in route.ts to insert into evaluation_scores with nanosecond timestamp.

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