cURL
curl --request POST \ --url http://studio.premai.io/api/v1/traces/{id}/addToDataset \ --header 'Authorization: Bearer <token>'
{ "traceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "status": "added", "success": true, "datapointId": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
Add a trace to a dataset, enabling continuous fine-tuning with fresh, real-world data. If the trace score is above a threshold, a positive datapoint is added; if too low, a new positive datapoint is generated based on user feedback.
added
queued
failed
Was this page helpful?