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 evaluations query to write the label to the correct evaluation #176

Closed dinmukhamedm closed 3 weeks ago

dinmukhamedm commented 3 weeks ago

The previous query was just effectively finding any evaluation id


[!IMPORTANT] Fix query in POST function in route.ts to correctly associate evaluation labels with the correct evaluation ID using a join and filtering by resultId and projectId.

  • Behavior:
    • Fix query in POST function in route.ts to correctly associate evaluation labels with the correct evaluation ID.
    • Uses innerJoin and filters by resultId and projectId to find matching evaluations.
  • Misc:
    • Adds a TODO comment to optimize the query by using a subquery instead of a join.

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