langsmith.client.Client.update_dataset_splits#

Client.update_dataset_splits(*, dataset_id: UUID | str | None = None, dataset_name: str | None = None, split_name: str, example_ids: List[UUID | str], remove: bool = False) None[source]#

Update the splits for a dataset.

Parameters:
  • dataset_id (ID_TYPE) – The ID of the dataset to update.

  • split_name (str) – The name of the split to update.

  • example_ids (List[ID_TYPE]) – The IDs of the examples to add to or remove from the split.

  • remove (bool, optional) – If True, remove the examples from the split. If False, add the examples to the split. Defaults to False.

  • dataset_name (str | None) –

Returns:

None

Return type:

None