datasets

Update Dataset Splits

Changed on

Add examples to a split, or remove them from it.

Returns the IDs of the given examples found in the dataset. Each of them gets a new version, even when its splits do not change. An example's other splits are kept, and an example without a split counts as being in the base split. Removing an example's last split leaves it in no split.

put/api/v1/datasets/{dataset_id}/splits

Request

  • Base URL
    https://api.smith.langchain.com
  • URL
    https://api.smith.langchain.com/api/v1/datasets/{dataset_id}/splits
  • Auth
    • API key in header X-API-Key
    • or API key in header X-Tenant-Id
    • or HTTP bearer

Path parameters

dataset_idstring uuid required

Request body

split_namestring required

Split to add the examples to, or remove them from.

examplesstring[] required

IDs of the examples to change. IDs of examples in other datasets are ignored.

removeboolean

Remove the examples from the split instead of adding them.

Response

Successful Response

string[] required

Changes

    • breaking

      the / response's property type changed from object to string for status

    • breaking

      removed the required property // from the response with the status

    • breaking

      removed the required property // from the response with the status

    • breaking

      removed the required property // from the response with the status