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

fix #211

Closed skull8888888 closed 2 weeks ago

skull8888888 commented 2 weeks ago

[!IMPORTANT] Enhance evaluation score handling with parameterized queries, new data fetching routes, and improved frontend visualization for evaluation metrics.

  • Backend Changes:
    • Removed validate_string_against_injection and execute_query from utils.rs.
    • Updated get_average_evaluation_score and get_evaluation_score_buckets_based_on_bounds in evaluation_scores.rs to use parameterized queries.
    • Added get_evaluation_score_single_bucket in evaluation_scores.rs for single bucket handling.
    • Removed unused evaluation routes in main.rs.
  • Frontend Changes:
    • Added progression/route.ts to fetch evaluation time progression data.
    • Updated chart.tsx and compare-chart.tsx to handle multiple score names and comparison.
    • Added evaluations-groups-bar.tsx for displaying evaluation groups.
    • Updated evaluations.tsx to include group selection and progression chart.
    • Added progression-chart.tsx for displaying evaluation progression over time.
    • Updated datatable.tsx to support row selection and pagination.

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