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

fetch dataset optionally from db to handle gracefully #242

Closed dinmukhamedm closed 1 day ago

dinmukhamedm commented 1 day ago

[!IMPORTANT] Improve dataset fetching by returning 404 for non-existent datasets in semantic_search, upload_datapoint_file, and index_dataset.

  • Behavior:
    • semantic_search in semantic_search.rs now checks if a dataset exists and returns 404 if not found.
    • upload_datapoint_file and index_dataset in routes/datasets.rs now return 404 if dataset is not found.
  • Database:
    • get_dataset in datasets.rs now returns Option<Dataset> instead of throwing an error if not found.

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