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 installlangchain-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:Installation
Installlangchain-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
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

