Traditional monitoring tracks technical metrics like latency and error codes, leaving teams blind when non-deterministic large language models (LLMs) return error-free responses that are factually hallucinated, toxic, vulnerable to prompt injections, or leaking personally identifiable information (PII). At the same time, pre-production prompt iteration remains manual and disconnected from live traffic, forcing developers to rely on throwaway notebooks, scattered spreadsheets, and subjective vibe checks while struggling with the operational bottleneck of sourcing representative test data that reflects real-world production failures.
Today, we are addressing that challenge head-on with the launch of AI Playground and AI Datasets. Working seamlessly alongside AI Evaluation, these capabilities unite live production observability with pre-release prompt engineering in a single platform, empowering engineering, quality, and security teams to A/B test prompt variations side-by-side across a matrix of LLMs and evaluate outputs in real time for quality, safety, cost, and latency before shipping to production.
Turning Real Production Telemetry into Canonical Test Suites
Sourcing quality test data is the primary operational bottleneck in AI evaluation. Too often, test suites remain scattered across spreadsheets and notebooks, rarely reflecting actual production failures and proving difficult to share across teams. AI Datasets reduces manual data curation by turning live production telemetry into a centralized, versioned library of canonical or "golden" test suites.
- Automated Production Trace Mining: Convert real production traces, specifically errored calls, high-latency interactions, and safety-flagged responses, directly into targeted test datasets. Instead of relying on fragmented manual logs, teams capture actual production failures as reusable regression baselines.
- Multi-Modal Curation & Synthetic Edge Cases: Combine production-derived traces with synthetic edge-case generation to test application guardrails against adversarial inputs like prompt injections and jailbreaks. Teams can also import existing files in CSV, JSON, and JSONL formats or hand-author custom input, expected-output, and metadata pairs.
- Centralized Workspace & Standardized Schema: Manage Curated, Prod-derived, and Synthetic datasets in a centralized list and detail view featuring search, sort, type filters, data samples, summary statistics, and evaluation history. Every dataset uses a common schema across input, expected output, context, and metadata, ensuring seamless portability across AI/ML, QA, PromptOps, and Security workflows.
Multi-Model Benchmarking Without the Guesswork
Once you have curated a production-grounded dataset, testing prompt updates shouldn't require hardcoding comparisons. AI Playground provides an interactive experimentation workspace where developers, PromptOps engineers, and QA teams can benchmark prompt variations across multiple LLMsside-by-side, evaluating accuracy, safety, token cost, and latency in real time before deploying changes to production.
- Side-by-Side Test & Compare Mode: Run single or multiple prompt variations, including system prompts, user prompts, and variables, side-by-side against a matrix of LLMs without writing throwaway code. Teams can adjust tunable parameters such as temperature, max tokens, and top-p in real time to see exactly how model behavior shifts.
- Batch Testing for Regression Confidence: Move beyond one-off prompt spot checks by executing prompt and model variations across full curated datasets. Batch Testing measures performance, accuracy, and safety at scale, data to help confirm that prompt updates don’t introduce unexpected regressions prior to deployment.
- Multi-View Cost, Latency & Quality Tracking: Track per-token costs and execution latency alongside real-time scores across six built-in evaluators: hallucination, toxicity, prompt injection, PII exposure, relevance, and answer quality. Teams can inspect variation-by-model results across table, spreadsheet, and chart views, complete with CSV export, making it easy to spot when smaller, lower-cost models deliver equivalent semantic accuracy to expensive, high-parameter LLMs.
- AI-Powered Insights Panel: Eliminate decision paralysis with automated recommendations that identify the best-performing prompt-and-model combination while explicitly flagging cost, latency, and safety trade-offs.
Once a winning configuration is validated, native platform hand-offs let teams save top-performing prompts directly to Prompt Management without leaving New Relic.
Closing the Loop with AI Evaluation
Standalone AI evaluation tools create disconnected data silos because they operate apart from your live application telemetry. By bringing AI Playground and Datasets together with AI Evaluation, New Relic closes the loop between production observability and pre-production engineering in a single unified platform. Supported Node.js and Python APM agents, as well as OpenTelemetry agents capture prompt input and model output telemetry as part of standard trace instrumentation. Using configurable sampling and routing rules, AI Evaluation’s asynchronous "LLM-as-a-judge" service scans live traffic shortly after it occurs, generating a 0-to-1 score, a pass/fail status, and brief reasoning across critical metrics including faithfulness (hallucination), answer and contextual relevancy, toxicity, bias, topic control, PII leakage, prompt injection, and jailbreak attempts. Because these scores attach directly as attributes to your original distributed traces, you can view the exact prompt payload, judge reasoning, and full-stack application behavior on a single screen to isolate whether an error stemmed from model reasoning or vector database retrieval. From there, teams can convert errored, high-latency, or safety-flagged traces into reusable “golden” test suites in AI Datasets. They can also act on AI-suggested dataset recommendations, such as “247 failed traces in the last 7 days,” to build targeted regression suites from recurring trace patterns..
Once problematic patterns are captured, engineers can jump straight from an active production alert or trace failure into AI Playground to reload the offending prompt, adjust model parameters, and validate a fix in place without writing throwaway code or leaving New Relic. Every Playground execution is scored in real time against six built-in evaluators, hallucination, toxicity, prompt injection, PII exposure, relevance, and answer quality, alongside per-token cost and latency. To help catch regressions before release, teams can also run Batch Testing across full curated datasets. Once a prompt-and-model combination meets quality, safety, cost, and latency requirements, teams save the winning configuration directly to Prompt Management and rely on AI Evaluation to continuously monitor live production traffic.
Why a Single System of Record Matters
By unifying live production observability, automated semantic evaluations, versioned test datasets, and multi-model prompt experimentation into a single system of record, New Relic reduces tool sprawl and the cost of running separate evaluation tools that lack full-stack APM context. Automatically converting real production trace failures into reusable test suites removes the manual data-sourcing bottleneck, slashing engineering toil and accelerating time-to-market for new generative AI features. At the same time, side-by-side per-token cost, latency, and quality visibility empowers engineering and FinOps leaders to right-size models and help reduce unnecessary inference spend without compromising user experience. Combined with automated pre-deployment safety scanning and live traffic guardrails that catch hallucinations, toxicity, prompt injections, and PII leaks before they damage brand reputation or trigger regulatory fines, this closed-loop workflow transforms generative AI from a risky, unpredictable expense into a secure, predictable driver of business growth.
Ready to replace manual spreadsheets and subjective vibe checks with a production-grounded AI engineering workflow? Sign up for the public preview today to start building, testing, and governing trustworthy generative AI applications in a single unified platform. You can also visit the AI Observability web page to see how New Relic connects live distributed traces with automated semantic evaluations, versioned test suites, and multi-model prompt experimentation.
As opiniões expressas neste blog são de responsabilidade do autor e não refletem necessariamente as opiniões da New Relic. Todas as soluções oferecidas pelo autor são específicas do ambiente e não fazem parte das soluções comerciais ou do suporte oferecido pela New Relic. Junte-se a nós exclusivamente no Explorers Hub ( support.newrelic.com ) para perguntas e suporte relacionados a esta postagem do blog. Este blog pode conter links para conteúdo de sites de terceiros. Ao fornecer esses links, a New Relic não adota, garante, aprova ou endossa as informações, visualizações ou produtos disponíveis em tais sites.