Problem
Elastic runs several production agents: security agents that find attacks in logs, an enterprise chatbot over customer data, and agents that write rules and queries. Each team made its own datasets and evaluators, traced runs in different tools and ran evaluations in different places, though all used the same metrics such as precision, recall and factuality. Building evaluations from scratch for each team was cumbersome, and quality had to be estimated and regressions prevented.
Example from the article: After a release, the attack-discovery agent reported attacks even on purely benign data, so the team extended its evaluations to catch this.
Solution in brief
Elastic moved the shared parts into one framework: dataset import with a common schema, trace-based evaluators, RAG evaluators and LLM-as-a-judge, with deterministic code checks next to the judge. Each team still owns its test data and evaluator calibration.
Questions this case answers
- How to consolidate per-team evaluation suites for generative agents into one reusable framework without erasing the domain-specific datasets and metrics each team needs
- How to combine model-based grading with deterministic checks so that ambiguous free text and exact-format outputs are both scored reliably
- How to stop every team from rebuilding agent evaluations from scratch and consolidate them into one shared framework?
- How to split agent quality checks between an LLM judge and deterministic code checks?
Tools and methods
- Trace-based evaluators — score token usage, latency and tool calls from recorded agent runs
- LLM-as-a-judge — grade open-ended text, tone and similarity to a known answer
- Programmatic (rules-based) evaluators — exact checks such as product IDs, syntax and whether generated code runs
- RAG evaluators — precision, recall, similarity and factuality for retrieval agents
- LangSmith, Phoenix, Elastic Observability — tracing and dataset tools the teams tried
- Playwright (customized, called Scout) — runs datasets against the TypeScript agents and collects scores locally
Google or a one-time email code. No password.