Welcome to the LangSmith Cookbook — your practical guide to mastering LangSmith. While our standard documentation covers the basics, this repository delves into common patterns and some real-world use-cases, empowering you to optimize your LLM applications further.
This repository is your practical guide to maximizing LangSmith. As a tool, LangSmith empowers you to debug, evaluate, test, and improve your LLM applications continuously. These recipes present real-world scenarios for you to adapt and implement.
Your Input Matters
Help us make the cookbook better! If there's a use-case we missed, or if you have insights to share, please raise a GitHub issue (feel free to tag Will) or contact the LangChain development team. Your expertise shapes this community.
Tracing allows for seamless debugging and improvement of your LLM applications. Here's how:
run_manager.get_child() and passing to the child callbacksEfficiently manage your LLM components with the LangChain Hub. For dedicated documentation, please see the hub docs.
Test and benchmark your LLM systems using methods in these evaluation recipes:
Retrieval Augmented Generation (RAG)
Chat Bots
Extraction
Agents
Multimodel
Fundamentals
compute_test_metrics utility function. This lets you evaluate "post-hoc" and backfill metrics as you define new evaluators.run_on_dataset(..., project_name='my-project-name')get_test_results beta utility to easily export your test results to a CSV file. This allows you to analyze and report on the performance metrics, errors, runtime, inputs, outputs, and other details of your tests outside of the Langsmith platform.Incorporate LangSmith into your TS/JS testing and evaluation workflow:
We are working to add more JS examples soon. In the meantime, check out the JS eval quickstart the following guides:
Harness user feedback, "ai-assisted" feedback, and other signals to improve, monitor, and personalize your applications. Feedback can be user-generated or "automated" using functions or even calls to an LLM:
Use LangSmith to help optimize your LLM systems, so they can continuously learn and improve.
Fine-tune an LLM on collected run data using these recipes:
Turn your trace data into actionable insights:
1,154 followers · starred Aug 2023
3,001 followers · starred Jul 2025
55 followers · starred Aug 2023
42 followers · starred Aug 2023
Welcome to the LangSmith Cookbook — your practical guide to mastering LangSmith. While our standard documentation covers the basics, this repository delves into common patterns and some real-world use-cases, empowering you to optimize your LLM applications further.
This repository is your practical guide to maximizing LangSmith. As a tool, LangSmith empowers you to debug, evaluate, test, and improve your LLM applications continuously. These recipes present real-world scenarios for you to adapt and implement.
Your Input Matters
Help us make the cookbook better! If there's a use-case we missed, or if you have insights to share, please raise a GitHub issue (feel free to tag Will) or contact the LangChain development team. Your expertise shapes this community.
Tracing allows for seamless debugging and improvement of your LLM applications. Here's how:
run_manager.get_child() and passing to the child callbacksEfficiently manage your LLM components with the LangChain Hub. For dedicated documentation, please see the hub docs.
Test and benchmark your LLM systems using methods in these evaluation recipes:
Retrieval Augmented Generation (RAG)
Chat Bots
Extraction
Agents
Multimodel
Fundamentals
compute_test_metrics utility function. This lets you evaluate "post-hoc" and backfill metrics as you define new evaluators.run_on_dataset(..., project_name='my-project-name')get_test_results beta utility to easily export your test results to a CSV file. This allows you to analyze and report on the performance metrics, errors, runtime, inputs, outputs, and other details of your tests outside of the Langsmith platform.Incorporate LangSmith into your TS/JS testing and evaluation workflow:
We are working to add more JS examples soon. In the meantime, check out the JS eval quickstart the following guides:
Harness user feedback, "ai-assisted" feedback, and other signals to improve, monitor, and personalize your applications. Feedback can be user-generated or "automated" using functions or even calls to an LLM:
Use LangSmith to help optimize your LLM systems, so they can continuously learn and improve.
Fine-tune an LLM on collected run data using these recipes:
Turn your trace data into actionable insights:
1,154 followers · starred Aug 2023
3,001 followers · starred Jul 2025
55 followers · starred Aug 2023
42 followers · starred Aug 2023