LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangSmith
  • Client
  • Run Trees
  • Traceable
  • Evaluation
  • Schemas
  • Langchain
  • Jest
  • Vitest
  • Wrappers
  • Anonymizer
  • Jestlike
  • Vercel
  • Anthropic
  • Sandbox
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangSmith
ClientRun TreesTraceableEvaluationSchemasLangchainJestVitestWrappersAnonymizerJestlikeVercelAnthropicSandbox
Language
Theme
JavaScriptlangsmith_openapi_clientLangsmithDatasets
Class●Since v0.8

Datasets

Copy
class Datasets

Bases

APIResource

Constructors

constructor
constructor

Properties

property
_client: Langsmith
property
comparative: Comparative
property
experiments: Experiments
property
group: Group
property
runs: Runs
property
share: Share
property
splits: Splits
property
versions: Versions

Methods

method
clone→ APIPromise<DatasetCloneResponse>

Clone a dataset.

method
create→ APIPromise<RunCreateResponse>

Add Runs To Annotation Queue

method
delete→ APIPromise<Rsp>
method
list→ APIPromise<RunListResponse>

Get Runs From Annotation Queue

method
retrieve→ APIPromise<DatasetShareSchema | null>

Get the state of sharing a dataset

method
retrieveCsv→ APIPromise<unknown>

Download a dataset as CSV format.

method
retrieveJSONL→ APIPromise<unknown>

Download a dataset as CSV format.

method
retrieveOpenAI→ APIPromise<unknown>

Download a dataset as OpenAI Evals Jsonl format.

method
retrieveOpenAIFt→ APIPromise<unknown>

Download a dataset as OpenAI Jsonl format.

method
retrieveVersion→ APIPromise<DatasetVersion>

Get dataset version by as_of or exact tag.

method
update→ APIPromise<unknown>

Update Run In Annotation Queue

method
updateTags→ APIPromise<DatasetVersion>

Set a tag on a dataset version.

method
upload→ APIPromise<Dataset>

Create a new dataset from a CSV or JSONL file.

View source on GitHub