How-to guides
Step-by-step guides that cover key tasks and operations in LangSmith.
Setup
See the following guides to set up your LangSmith account.
- Create an account and API key
- Create an organization
- Set up billing
- Set up a workspace
- Set up access control (enterprise only)
Tracing
Get started with LangSmith's tracing features to start adding observability to your LLM applications.
- Annotate code for tracing
- Toggle tracing on and off
- Log traces to specific project
- Set a sampling rate for traces
- Add metadata and tags to traces
- Implement distributed tracing
- Access the current span within a traced function
- Log multimodal traces
- Log retriever traces
- Log custom LLM traces
- Prevent logging of sensitive data in traces
- Export traces
- Share or unshare a trace publicly
- Trace generator functions
- Trace with
LangChain
- Trace with
Instructor
(Python only) - Trace without setting environment variables
Datasets
Manage datasets in LangSmith to evaluate and improve your LLM applications.
- Manage datasets in the application
- Manage datasets programmatically
- Version datasets
- Share or unshare a dataset publicly
Evaluation
Evaluate your LLM applications to measure their performance over time.
- Evaluate an LLM application
- Bind and evaluator to a dataset in the UI
- Run an evaluation from the prompt playground
- Evaluate on intermediate steps
- Use LangChain off-the-shelf evaluators (Python only)
- Compare experiment results
- Evaluate an existing experiment
- Unit test LLM applications (Python only)
- Run pairwise evaluations
Human feedback
Collect human feedback to improve your LLM applications.
- Capture user feedback from your application to traces
- Set up a new feedback criteria
- Annotate traces inline
- Use annotation queues
Monitoring and automations
Leverage LangSmith's powerful monitoring and automations features to make sense of your production data.
- Filter traces in the application
- Create a filter
- Filter for intermediate runs (spans)
- Advanced: filter for intermediate runs (spans) on properties of the root
- Advanced: filter for runs (spans) whose child runs have some attribute
- Copy the filter
- Manually specify a raw query in LangSmith query language
- Use an AI Query to auto-generate a query
- Use monitoring charts
- Set up automation rules
- Set up online evaluations
- Set up webhook notifications for rules (beta)
- Set up threads
Prompts
Organize and manage prompts in LangSmith to streamline your LLM development workflow.