Overview
Integration details
| Class | Package | Local | Serializable | JS support |
|---|---|---|---|---|
| LangSmithLoader | langchain-core | ❌ | ❌ | ❌ |
Loader features
| Source | Lazy loading | Native async |
|---|---|---|
| LangSmithLoader | ✅ | ❌ |
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
API reference
For detailed documentation of all LangSmithLoader features and configurations head to the API reference: python.langchain.com/api_reference/core/document_loaders/langchain_core.document_loaders.langsmith.LangSmithLoader.htmlConnect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.