Uploaded November 2026 | Updated November 2026, 14 hours ago
An experiment runs your agent over every example in a dataset and scores the results with your evaluators. In this lesson we run a baseline experiment on the LangSlice pizza agent with the LangSmith SDK and read the evaluator's comments on the orders that let out-of-stock toppings through. Then we add a stock check to add_pizza_to_order and run the experiment again.
The comparison view lines the two runs up example by example, so you can confirm the failures flipped to passing and the passing orders stayed that way. The same setup works for comparing two models or two versions of a prompt.
Chapters:
0:00 What is an experiment in LangSmith
0:26 What to use experiments for
1:10 Ways to run an experiment
1:49 Running a baseline experiment with the SDK
2:41 Reading experiment results
3:39 Fixing the out-of-stock bug
4:12 Rerunning and comparing experiments
5:06 Where the Test stage leaves us
LangSmith Essentials is a free course on LangChain Academy. LangSmith is LangChain's framework-agnostic platform for agent engineering.
Resources:
→ LangSmith Essentials course: academy.langchain.com/courses/quickstart-langsmith-essentials
→ Course repo: github.com/langchain-ai/lca-langsmith-essentials
→ LangSmith: langchain.com/langsmith
An experiment runs your agent over every example in a dataset and scores the results with your evaluators. In this lesson we run a baseline experiment on the LangSlice pizza agent with the LangSmith SDK and read the evaluator's comments on the orders that let out-of-stock toppings through. Then we add a stock check to add_pizza_to_order and run the experiment again.
The comparison view lines the two runs up example by example, so you can confirm the failures flipped to passing and the passing orders stayed that way. The same setup works for comparing two models or two versions of a prompt.
Chapters:
0:00 What is an experiment in LangSmith
0:26 What to use experiments for
1:10 Ways to run an experiment
1:49 Running a baseline experiment with the SDK
2:41 Reading experiment results
3:39 Fixing the out-of-stock bug
4:12 Rerunning and comparing experiments
5:06 Where the Test stage leaves us
LangSmith Essentials is a free course on LangChain Academy. LangSmith is LangChain's framework-agnostic platform for agent engineering.
Resources:
→ LangSmith Essentials course: academy.langchain.com/courses/quickstart-langsmith-essentials
→ Course repo: github.com/langchain-ai/lca-langsmith-essentials
→ LangSmith: langchain.com/langsmith










