惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Stack Overflow Blog
Stack Overflow Blog
云风的 BLOG
云风的 BLOG
G
Google Developers Blog
J
Java Code Geeks
C
Check Point Blog
Last Week in AI
Last Week in AI
Microsoft Azure Blog
Microsoft Azure Blog
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
Vercel News
Vercel News
The GitHub Blog
The GitHub Blog
L
LangChain Blog
有赞技术团队
有赞技术团队
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 司徒正美
IT之家
IT之家
Martin Fowler
Martin Fowler
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Tailwind CSS Blog
U
Unit 42
Jina AI
Jina AI
Microsoft Security Blog
Microsoft Security Blog
I
InfoQ

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Evaluation: Prove it before you ship it
Halton Chen · 2026-05-18 · via DEV Community

There's a saying in AI circles: monitoring tells you what's happening — evaluation tells you how good it is. You can have an agent that responds instantly, never crashes, and answers every question with absolute confidence. But confidence without correctness is just a well-dressed mistake.

That's exactly why Oracle AI Agent Studio gives us two complementary capabilities: Monitoring and Evaluation. In this post, we're focusing on Evaluation — what it is, how to set it up, and why you should care before your agent goes anywhere near production.

Curious about Monitoring? Check out this post.


Why Evaluation Matters

Evaluation ensures your agent can meet defined standards and business outcomes across three dimensions: accuracy, latency, and token usage.

Without it, you're essentially deploying on vibes.

With a proper evaluation framework, you can validate that your agent answers correctly, responds within acceptable time, and doesn't burn through your token budget faster than your cloud spend budget. It's the closest thing to a test suite for your AI agent.


The Metrics: What Gets Measured

Oracle AI Agent Studio provides a rich set of metrics, and it's worth understanding which ones are available for Evaluation versus Monitoring, because they serve different purposes.

Metric Evaluation Monitoring
Error Rate
Error Count
Session Count
P99 Latency
P50 Latency
Total Tokens
Input Token Count
Output Token Count
Median Correctness
Groundedness
Answer Relevance
Context Relevance

The quality metrics — Correctness, Groundedness, Answer Relevance, and Context Relevance — are exclusive to Evaluation. These are the metrics that tell you whether your agent is genuinely useful, not just technically operational.

A quick breakdown of what these mean in practice:

Median Correctness measures how closely your agent's answer matches the expected reference response. Scores range from 0 to 1. Think of it as your agent's grade on the test.

Groundedness measures whether the generated answer is actually grounded in the retrieved source content. A grounded response stays faithful to what the knowledge base says — it doesn't hallucinate or embellish. (Hallucination: the nemesis of every enterprise AI implementation.)

Answer Relevance measures how directly and precisely the agent's response addresses the user's question. Getting the right answer to the wrong question doesn't count.

Context Relevance measures the quality of the retrieved information itself — whether the context pulled in by the agent was actually appropriate and reliable enough to produce a good answer.


Setting Up an Evaluation: Step by Step

Step 1 — Define Your Evaluation Set

Before you can run anything, you need to define an evaluation set. Think of this as your test plan. It includes:

  • Test questions — the inputs your agent needs to handle
  • Expected responses — the gold-standard answers you're measuring against
  • Success criteria — the thresholds each metric needs to meet

An evaluation set without expected responses is just a demo. The expected responses are what turn a run into a meaningful quality gate.

Step 2 — Choose Your Run Mode

When setting up your evaluation run, you'll choose between two modes:

Sequential runs questions in the exact order you define them. Use this when one question depends on the context from the previous one — for example, a multi-turn conversation flow.

Random runs questions in a randomised order. This is useful when testing independent questions where order doesn't matter, and it helps reduce positional bias in your evaluation results.

Step 3 — Define Your Questions

In the Questions tab, add the questions users are expected to ask your agent, paired with the exact responses you want the agent to return.

Here's an example from an HR benefits agent:

Q: Who is eligible for the benefits program?

A: Eligibility Criteria:

  1. Full-time employees working 30+ hours per week are eligible for full benefits.
  2. Part-time employees may qualify for limited benefits.
  3. Benefits eligibility begins on the first day of the month following hire date.

Dependents (spouse and children under age 26) may be enrolled in applicable plans.

Keep your expected responses as close to production-quality as possible. The correctness metric is only as good as the reference answer you define.

Step 4 — Configure Your Metrics

In the Metrics tab, you select which metrics to include in this evaluation run. This is where you tailor the evaluation to your agent's specific use case and business requirements.

For example:

  • If your agent doesn't invoke any APIs, you can exclude API error metrics — no point cluttering your results with noise.
  • If accuracy is your top priority (say, a policy or compliance agent), set your correctness threshold high — 0.8 is a reasonable baseline for enterprise use.
  • If token cost is a concern, configure output token thresholds to flag responses that are running unnecessarily long.

Metrics without thresholds are just numbers. Thresholds are what turn numbers into pass/fail signals.

Step 5 — Initiate the Evaluation Run

Click Initiate Evaluation Run. Oracle AI Agent Studio will execute the evaluation and return results for each question, including:

  • Actual response vs. expected response — side by side
  • Latency per question
  • Token usage (input and output)
  • Quality scores for the metrics you selected

Reading Your Results

After the run completes, reviewing the results is where the real value surfaces. Here's an example of what you might find:

Latency: One question took over 20 seconds — exceeding the defined threshold. That's a red flag worth investigating. It could point to an overly complex retrieval step, a large system prompt, or a knowledge base that needs optimisation. The remaining questions came in well within threshold.

Token Usage: Both input and output token counts were within acceptable limits. Good news for the budget.

Correctness: With a threshold of 0.8, any question scoring below that benchmark gets flagged for review. Patterns in low-scoring questions often reveal gaps in your knowledge base or ambiguities in your system prompt.

This combination of latency, cost, and quality signals gives you a complete picture — not just "did it answer?" but "did it answer well, quickly, and efficiently?"


Final Thoughts

An AI agent that passes evaluation isn't just technically sound — it's one you can actually stand behind when a business user asks, "How do we know this is right?"

Defining quality thresholds, building meaningful evaluation sets, and reviewing results against expected outcomes is what separates a production-ready agent from a prototype running in a demo environment. Oracle AI Agent Studio gives you the tooling to do this properly. Use it.