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
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

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

update_dataset_splits

Copy
update_dataset_splits(
  self,
  *,
  dataset_id: Optional[ID_TYPE] = None,
  dataset_name: Optional
View source on GitHub
[
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
split_name*str
example_ids*List[Union[UUID, str]]
removeOptional[bool]
Default:False

Update the splits for a dataset.

The name of the dataset to update.

The name of the split to update.

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

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