Data & AI Infrastructure

LangSmith

Trace, evaluate, and monitor LLM applications with datasets and run-level inspection.

G2 rating
4.4 / 5 · 102 reviews
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.

Common problems and how to fix them
ProblemWhat to checkWhat to change
The experiment says every answer passed despite mismatched sourcesInspect the evaluator's actual output field and reference-output shapeCompare policy_id directly and include a known failing fixture to test the evaluator
The trace shows no retrieval stepCheck whether retrieval is instrumented as part of the target functionRecord 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.

Sample brief
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.
  1. Connect tracing in a sandbox and confirm that one run shows the intended input and retrieval steps.
  2. Add the dataset and evaluate two prompt versions without changing the source documents.
  3. 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.

Example results for the sample brief
CheckWhat you might seeWhat to do next
Supported itemThe correct source is recorded.Confirm it with the fixture.
Missing answerThe app abstains from guessing.Compare the answer with the expected label.
CostBoth 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 caseHow to try itWhat to check
Regression checkRe-run the same fixture questions after a prompt change.Compare pass rates and inspect disagreements.
Trace inspectionFind where a slow run spends time.Distinguish retrieval latency from model processing.

Which plan should you try?

PlanPriceWho should consider it
Developer$0/seat/month, with usage charges after applicable limitsTrial tracing and datasets on a sample app.
Plus$39/seat/month at the time checked plus usage-based chargesCompare 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

4.4 / 5102 reviews on G2 ↗

1 featured user review.

Harshul S.

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.

  • Supabase · Build an application backend with Postgres, authentication, file storage, and APIs.
  • Firebase · Build web and mobile backends with managed authentication, storage, hosting, and data services.
  • Neon · Run serverless Postgres and use database branches to test isolated schema changes.

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

Sources and further reading