LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
  • RemoteGraph
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDKRemoteGraph
Language
Theme
PythonlangsmithclientClientupdate_dataset_splits
Method●Since v0.1

update_dataset_splits

Update the splits for a dataset.

Copy
update_dataset_splits(
  self,
  *,
  dataset_id: Optional[ID_TYPE] = None,
  dataset_name: Optional[str] = None,
  split_name: str,
  example_ids: list[ID_TYPE],
  remove: bool = False
) -> None

Parameters

NameTypeDescription
dataset_idOptional[Union[UUID, str]]
Default:None

The ID of the dataset to update.

dataset_nameOptional[str]
Default:None

The name of the dataset to update.

split_name*str

The name of the split to update.

example_ids*List[Union[UUID, str]]

The IDs of the examples to add to or remove from the split.

removeOptional[bool]
Default:False

If True, remove the examples from the split. If False, add the examples to the split.

View source on GitHub