eval, score, batch_eval, external helpers), read (get_eval_breakdown), and define (@eval decorator for client-side evaluators). See the Evaluations guide for the conceptual model.
decimalai.eval()
Push a single eval score to a trace.
The trace to attach the score to.
Metric name (e.g.,
"factual_accuracy", "relevance").Score value between 0.0 and 1.0.
Eval source identifier. Appears grouped in dashboard.
Human-readable display name (e.g.,
"My RAG Eval").Binary pass/fail override.
Human-readable explanation of the score.
"quality" or "compatibility".decimalai.score()
Shorthand for pushing a single eval score.
decimalai.get_eval_breakdown()
Get the full eval breakdown for a trace, grouped by source.
decimalai.batch_eval()
Apply an evaluator function across multiple traces.
External Integration Helpers
Import scores from third-party evaluation frameworks:- DeepEval
- LangSmith
- Custom Scores
Custom Evaluators (@eval)
Define evaluators that run client-side before trace upload:
@eval decorator also accepts category="llm_judge" (for judge-style scorers), sampling_rate (a 0.0–1.0 fraction of traces to evaluate), and version (a string tag for the evaluator definition). See the Evaluations guide for built-in evaluators and sampling configuration.
What’s next
Replay
Re-run traces after a manifest change and re-score them.
Datasets
Datasets filter on the eval verdict —
keep traces become training data.