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

allow downloading datasets as JSON, minor refactor #168

Closed dinmukhamedm closed 3 weeks ago

dinmukhamedm commented 3 weeks ago

[!IMPORTANT] Add JSON dataset download feature and refactor download logic with a reusable DownloadButton component.

  • New Feature:
    • Add GET endpoint in route.ts to download datasets as JSON, checking user authorization and dataset existence.
  • Components:
    • Add DownloadButton component in download-button.tsx for reusable download functionality.
    • Replace existing download logic in evaluation.tsx with DownloadButton for CSV downloads.
    • Add DownloadButton to dataset.tsx for JSON downloads.
  • Refactor:
    • Remove old CSV download logic from evaluation.tsx.

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