Skip to main content
This guide provides a quick overview for getting started with the LangSmithLoader document loader. For detailed documentation of all LangSmithLoader features and configurations head to the API reference.

Overview

Integration details

Loader features

Setup

To access the LangSmith document loader you’ll need to install langchain-core, create a LangSmith account and get an API key.

Credentials

Sign up at langsmith.com and generate an API key. Once you’ve done this set the LANGSMITH_API_KEY environment variable:
If you want to get automated best-in-class tracing, you can also turn on LangSmith tracing:

Installation

Install langchain-core:

Clone example dataset

For this example, we’ll clone and load a public LangSmith dataset. Cloning creates a copy of this dataset on our personal LangSmith account. You can only load datasets that you have a personal copy of.

Initialization

Now we can instantiate our document loader and load documents:

Load

Lazy load