LangSmith
Overview
LangSmith — a platform by LangChain for testing, debugging, and monitoring LLM applications.
Capabilities
- tracing of LangChain chains;
- datasets for prompt testing;
- model response evaluation;
- production monitoring.
Use Cases
- debugging agents;
- prompt testing;
- observing LLM applications.
LangSmith vs Langfuse
| LangSmith | Langfuse | |
|---|---|---|
| Developer | LangChain | Open-source |
| Deployment | Cloud | Self-hosted or cloud |
| Suitable For | LangChain ecosystem | Open-source projects |
Getting Started
Install the SDK and enable tracing with environment variables:
import os
os.environ["LANGCHAIN_TRACING_V2"] = "true"
os.environ["LANGCHAIN_API_KEY"] = "YOUR_KEY"
After this, all LangChain calls will automatically appear in the LangSmith dashboard.