Weights and Biases LLM evaluation is the process of testing and scoring language model applications with W&B Weave, the generative AI toolkit from Weights and Biases. It answers the question every team faces once an application leaves the prototype stage: how do you know whether a change made things better? The central question is not whether the new prompt sounds good, but whether it scores better than the old one on the same test cases. Weave makes that comparison concrete, with traces, scores and leaderboards.
Weights and Biases began as a platform for tracking machine learning experiments, and Weave extends that idea to generative AI: log everything, experiment, and evaluate. Weave applies that discipline to prompts, models, retrieval and agents, so decisions rest on recorded evidence.
Key takeaways
- Weights and Biases LLM evaluation runs on W&B Weave, with tracing, evaluations, scoring and monitoring in one toolkit.
- A single decorator instruments functions so every call is logged with inputs, outputs, latency and cost.
- Evaluations compare model and prompt versions against datasets, with results shown on leaderboards.
- Pre-built scorers cover common checks such as hallucination and context relevance, and custom scorers can be added.
- Online evaluations score live production traces, so quality drift is caught as it happens.
What is W&B Weave?
W&B Weave is a toolkit for developing, debugging and evaluating generative AI applications, covering the full workflow from experimentation to production: evaluations, tracing and monitoring, scoring, human feedback and guardrails. Weave is framework and model agnostic, working with popular AI frameworks and model providers. It inherits the wider platform’s mature approach to versioning, comparison and collaboration: a prompt change is treated like a model change — versioned, logged and compared.
How Weights and Biases LLM evaluation works
Evaluation starts with instrumentation: a single decorator marks the application’s functions, and Weave automatically logs each call with its inputs, outputs, execution time and nested structure. Retrieval, generation and the pipeline that calls them all appear in a trace tree, so the team can see exactly how an answer was produced.
Evaluation then runs against datasets, applying a version of the application to each test case and scoring the outputs. Scores come from pre-built scorers for common metrics such as hallucination and context relevance, custom scorers written by the team, or human feedback. Weave also supports LLM-as-a-judge scoring, where one model grades the output of another against written criteria.
Results are grouped into leaderboards, which rank the versions tested by their scores, making the comparison visible: the best-performing prompt or model is easy to find, with the evidence behind the ranking attached. Evaluations can also run online, on live production traces, scoring requests asynchronously so evaluation never slows the application. For a broader view, see our guide to building an LLM evaluation framework.
Tracing and the system of record
Tracing in Weave is low effort: wrapping a function with the decorator is enough for Weave to capture the call, version the code, and log the trace, including token counts and cost. The trace view shows the nested hierarchy of calls, so a team can inspect a single request component by component. Every trace is stored with the code and data that produced it, so any result can be reproduced.
Tracing data also feeds monitoring: every request is logged with inputs, outputs, latency and cost, so the team can watch for patterns — rising latency, growing cost, or a slow decline in scores. Our guide to LLM production monitoring explains which signals matter once a model is live.
Scorers, datasets and leaderboards
Scorers are the heart of Weave evaluation. Pre-built scorers cover common checks — hallucination scoring, context relevance and similar measures — so teams can start without writing their own. Custom scorers cover anything specific to the product, and human feedback can be collected where judgement matters more than automation.
Each kind of scorer has a weakness, and a good evaluation uses more than one: pre-built scorers are convenient but generic; custom scorers are precise but narrow; model-based scorers are flexible but can be biased or inconsistent; human scores are trusted but slow. When several different scorers agree, the conclusion is stronger than any single score. Our guide to LLM as a judge explains the strengths and limits of model-based grading.
Datasets in Weave are versioned, like code, so an evaluation run can always be traced back to the exact cases it used. Leaderboards rank versions by their scores, making the best performer visible and the evidence easy to inspect. The playground lets teams iterate on prompts without writing code, trying a new wording before a full evaluation run.
Offline evaluation before release
Offline evaluation runs a dataset through a new prompt or model version before it reaches users — the main gate for changes. If the new version scores worse, the change does not ship until the cause is understood. Best for: testing prompt changes, comparing models and catching regressions.
The strength of offline evaluation is control: the same inputs and scorers apply to every version, so differences can be attributed to the change itself. The weakness is coverage — no dataset contains every request users will make — so offline results are a check, not a guarantee.
Online evaluation in production
Online evaluation scores live production traces as they arrive, running asynchronously. It catches drift, new kinds of user request and slow declines in quality that a fixed dataset cannot predict. Best for: monitoring live quality, detecting drift and finding new test cases.
Online evaluation needs care around cost and sampling: scoring every trace with a judge model is expensive, so most teams score a sample, or use cheap code-based checks on all traces and heavier scorers on a subset.
Weights and Biases LLM evaluation compared with other approaches
| Approach | What it does well | Main limitation | Best for |
|---|---|---|---|
| W&B Weave evaluation | Tracing, scoring, leaderboards and monitoring in one toolkit | Needs instrumentation and scorer upkeep | Teams that want one home for LLM quality |
| Manual spot checks | Fast and flexible for a few examples | Not repeatable or comparable | Early prototypes |
| Standalone benchmark suites | Standardised model comparisons | May not match real product tasks | Choosing a base model |
| Human review only | Trusted judgement on hard cases | Slow and costly at scale | High-stakes outputs |
| Spreadsheet score tracking | Simple to start | Breaks down as versions multiply | Very small teams with one model |
The comparison shows why Weave fits teams past the prototype stage: manual testing and spreadsheets do not scale with the versions a real product accumulates, and benchmark suites compare models in general rather than a team’s own application on its own tasks — while Weave’s leaderboards make the answer visible to the whole team.

Setting up a Weights and Biases LLM evaluation workflow
Start by instrumenting the application with Weave: initialise tracking, then mark the key functions with the decorator — retrieval, generation and any step that shapes the answer. Check that traces appear with inputs, outputs, latency and cost attached. The goal is coverage: every model call should be visible.
Next, build a first dataset of twenty to fifty well-chosen cases: the most common user requests, a few edge cases, and cases the application has failed on before. Add expected outputs or reference answers where they exist, version the dataset, and record a baseline by running the current version against it.
Then choose scorers: one pre-built scorer, such as hallucination or context relevance, plus one custom check for something specific to the product. Run the evaluation, inspect the lowest-scoring cases, and check whether the scorers agree with human judgement on a sample. If not, adjust the criteria before trusting the scores.
Finally, make evaluation the gate for changes: no prompt or model change ships without an evaluation run and a leaderboard comparison against the baseline. Add online evaluation for a sample of production traces, review the lowest-scoring traces weekly, and add genuine failures to the dataset. For a fuller treatment, see our guide to building an LLM evaluation pipeline.
Common Weights and Biases LLM evaluation mistakes
The most common mistake is evaluating without a baseline. A score on its own means little: a hallucination score is good or bad only against the previous version. Run the current version first, record its scores, and judge every change against that baseline — without it, teams celebrate improvements that are really noise.
The second mistake is trusting a single scorer. A model-based judge can be fooled, a code-based check can be gamed, and a pre-built scorer may not measure what matters for the product. Use several scorers, and look at failing cases rather than only the leaderboard average — the average hides the pattern.
The third mistake is letting the dataset go stale. Products, users and retrieved data all change, and a dataset that is never updated stops representing real usage. Review it whenever the product changes, and add cases from production failures as a routine.
The fourth mistake is treating the playground as proof. Trying a prompt by hand finds ideas, but it is not an evaluation. Ship only what a dataset run has measured, and keep the leaderboard history so decisions can be revisited.
Weights and Biases LLM evaluation checklist
- The application is instrumented, and traces show inputs, outputs, latency and cost for every model call.
- A versioned dataset exists with twenty to fifty cases covering common requests, edge cases and past failures.
- A baseline score for the current version is recorded before any change is tested.
- At least one pre-built scorer and one custom or human score are defined.
- Scorers are checked against human judgement on a sample of cases.
- Evaluation runs are compared on a leaderboard before a prompt or model change ships.
- Production traces are sampled and scored online, and genuine failures are added to the dataset.
- Low-scoring traces are reviewed weekly, not only when something breaks.
- Datasets are versioned so results stay reproducible.
- The team reviews the dataset whenever the product or its data changes.
Frequently asked questions
What is Weights and Biases LLM evaluation?
Weights and Biases LLM evaluation is the use of W&B Weave to test and score language model applications, combining tracing, evaluations, scorers, datasets and leaderboards so teams can compare prompt and model versions.
What is W&B Weave?
W&B Weave is the generative AI toolkit from Weights and Biases, providing evaluations, tracing and monitoring, scoring, human feedback and guardrails. It is framework and model agnostic, working with popular AI frameworks and model providers.
How does tracing work in Weave?
A decorator marks the application’s functions, and Weave automatically logs each call with inputs, outputs, execution time and nested structure. Token counts and cost are captured where the provider reports them, and every trace is stored with the code that produced it.
What scorers does Weave provide?
Weave offers pre-built scorers for common checks such as hallucination and context relevance, supports custom scorers, and allows human feedback as scores. It also supports LLM-as-a-judge scoring, where one model grades the output of another.
What is the difference between offline and online evaluation in Weave?
Offline evaluation runs a fixed dataset through a version before it ships, under controlled conditions. Online evaluation scores live production traces as they arrive, catching drift and failures that a fixed dataset cannot predict.
When is Weights and Biases LLM evaluation the right choice?
It suits teams that want one toolkit for tracing, scoring and monitoring, especially teams familiar with Weights and Biases for machine learning experiment tracking. Smaller prototypes may be fine with manual testing, but that stops scaling once versions multiply.







