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.17k stars 58 forks source link

eval time progression #210

Closed skull8888888 closed 1 week ago

skull8888888 commented 1 week ago

[!IMPORTANT] Refactor backend to use parameterized queries and enhance frontend with evaluation score progression and group handling.

  • Backend Changes:
    • Removed validate_string_against_injection and execute_query from utils.rs.
    • Refactored queries in evaluation_scores.rs, events.rs, and spans.rs to use parameterized queries with .bind().
    • Added get_evaluation_score_single_bucket in evaluation_scores.rs for single bucket handling.
    • Removed unused routes in main.rs related to evaluations.
  • Frontend Changes:
    • Added new API routes in route.ts for evaluation groups and progression.
    • Updated chart.tsx and compare-chart.tsx to handle multiple score names and comparison.
    • Introduced progression-chart.tsx for displaying evaluation score progression over time.
    • Updated evaluations.tsx and evaluation.tsx to handle evaluation groups and score selection.
    • Added evaluations-groups-bar.tsx for displaying evaluation groups.
  • Database and Utilities:
    • Updated drizzle.ts to use a singleton pattern for database connections.
    • Added utility functions in utils.ts for handling time ranges and aggregation functions.

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