Data & AI Infrastructure
LangSmith
Trace, evaluate, and monitor LLM applications with datasets and run-level inspection.
- G2 rating
- Pricing
- Developer
- $0/seat/month, with usage charges after applicable limits
- Plus
- $39/seat/month at the time checked plus usage-based charges
- Best for
- Developers or QA teams comparing prompts, models, or retrieval settings in the same application.
Video tutorial
Getting Started with LangSmith (5/8): Datasets & Evaluations · LangChain · Watch on YouTube ↗
What is LangSmith?
LangSmith makes individual LLM application runs inspectable. An evaluation can connect input, retrieved material, model output, and a score to a particular app version. Start with a short dataset that represents both supported and unsupported questions.
Keep human expectations separate from model scores. A high style score can conceal a wrong source or a missing exception in a policy response.
Set up and test a real workflow
Create a dataset called policy-qa with three sanitized input and reference-output pairs. Include a straightforward policy question, similarly worded question for another policy, and a question with no source. Define an evaluator that checks the returned policy ID and missing-evidence behavior. Keep inputs identical across model versions and record the project name that holds the traces.
What to look for in the result
Set one reference answer to policy_id RET-14 for How long can I return an unopened item? Run a baseline and a revised prompt as separate experiments. If the changed run gives the correct text but policy_id RET-30, mark that row as failed. Open the trace to see whether retrieval supplied RET-30 or the generator selected it after receiving RET-14. Retain both experiment links with the change.
| Problem | What to check | What to change |
|---|---|---|
| The experiment says every answer passed despite mismatched sources | Inspect the evaluator's actual output field and reference-output shape | Compare policy_id directly and include a known failing fixture to test the evaluator |
| The trace shows no retrieval step | Check whether retrieval is instrumented as part of the target function | Record the relevant child operation or score retrieval independently before drawing conclusions about its quality |
Try it: Evaluate a sample policy assistant
Create a three-row dataset containing a known answer, an exception, and a question the documents cannot answer.
Record expected for “Can staff reserve a room?”, “How long may a room be held during an emergency?”, and “What is the lunch policy?”. The fixture only contains room policy information. Store citation IDs and an unsupported-answer label.
- Connect tracing in a sandbox and confirm that one run shows the intended input and retrieval steps.
- Add the dataset and evaluate two prompt versions without changing the source documents.
- Inspect individual failures and latency before deciding which prompt performs better.
What a usable result looks like
The trace exposes why a result missed an exception or answered outside its supported scope.
| Check | What you might see | What to do next |
|---|---|---|
| Supported item | The correct source is recorded. | Confirm it with the fixture. |
| Missing answer | The app abstains from guessing. | Compare the answer with the expected label. |
| Cost | Both versions show measurable run usage. | Keep the model and dataset fixed for comparison. |
What to save from the trial
An evaluation dataset and a small before-and-after table.
Another scenario
Add a noisy retrieval fixture to measure whether the correct source survives a competing passage.
Use cases and what to check
| Use case | How to try it | What to check |
|---|---|---|
| Regression check | Re-run the same fixture questions after a prompt change. | Compare pass rates and inspect disagreements. |
| Trace inspection | Find where a slow run spends time. | Distinguish retrieval latency from model processing. |
Which plan should you try?
| Plan | Price | Who should consider it |
|---|---|---|
| Developer | $0/seat/month, with usage charges after applicable limits | Trial tracing and datasets on a sample app. |
| Plus | $39/seat/month at the time checked plus usage-based charges | Compare shared team workflows and expected trace volume. |
Estimate trace volume and retention as well as seats.
Provider pricing and access ↗ · Checked
What people say about LangSmith
1 featured user review.
Finding the failing step in an LLM workflow
The reviewer found the trace and evaluation views useful for seeing where failures originated and investigating why a model responded the way it did.
4.5/5 · August 17, 2026 · G2 ↗ · Paraphrased
Limits to check
Review trace content and retention before logging real prompts or customer documents.
When to choose it
LangSmith earns its place when several steps can change the same answer and a team needs to see what each run did. Use a fixed dataset so quality changes can be distinguished from changes in the input examples.
Common questions
- Should I measure only overall accuracy?
- Inspect representative failures and keep different measures for factuality, citations, time, and cost.
- Can the same dataset test multiple versions?
- Reuse it so the comparison isolates what changed in the app.
Community posts
-
Find the results for one LangSmith experiment ↗
A developer describes seeing aggregate evaluation results in the interface and asks how to retrieve a single named experiment through the Python SDK.
Reddit · r/LangChain