From Simple AI Workflows to Multi-Agent Systems

DONT FORGET TO REPLACE ME LATER

下面是一份可直接用于公司内部分享的英文 Knowledge Share。核心设计是:

每一级 AI 项目都继承前一级的 Evals,同时增加与新复杂度对应的评估层。
项目越复杂,不是替换旧指标,而是在共同的 Eval Core 上增加新的 Eval Packs。

From Simple AI Workflows to Multi-Agent Systems

A Layered Evaluation Framework for Enterprise AI Projects

Suggested duration: 25–30 minutes
Target audience: Product managers, AI engineers, data scientists, platform engineers, domain experts, security teams, and business owners


1. Why Do We Need Different Eval Strategies?

Not all AI projects have the same level of complexity.

A document extraction workflow, an internal chatbot, a tool-using agent, and a multi-agent system may all use large language models, but they fail in very different ways.

For example:

Therefore, a single generic metric such as “answer quality” is not sufficient.

The evaluation strategy must evolve with the architecture of the AI system.

However, this does not mean that every team should build a completely separate evaluation framework. Most foundational capabilities should be shared across the company.

The recommended model is:

Shared Enterprise Eval Core
          +
Level-Specific Eval Packs

2. Four Levels of Enterprise AI Projects

We can organize enterprise AI projects into four levels.

Level 1
AI-Enabled Workflow
Extraction, classification, summarization
        ↓
Level 2
RAG Application or Chatbot
Knowledge retrieval and conversational responses
        ↓
Level 3
Single Agent with Tools
Planning, tool selection and external actions
        ↓
Level 4
Multi-Agent or Agentic System
Multiple agents, delegation and complex coordination

Each level introduces additional uncertainty, autonomy and business risk.

LevelTypical ArchitectureMain Source of Complexity
Level 1Input → LLM → Structured outputOutput correctness
Level 2User → Retrieval → LLM → AnswerKnowledge grounding
Level 3User → Agent → Tools → ActionsDecision and execution trajectory
Level 4Multiple agents → Tools → Shared stateCoordination and emergent behavior

3. The Most Important Principle: Inherit and Extend

When an AI project moves from Level 1 to Level 2, we should not stop evaluating extraction accuracy, format correctness or latency.

Instead, we retain those evaluations and add retrieval and grounding evaluations.

The same principle applies at every level.

Level 1:
Output Evals

Level 2:
Output Evals
+ Retrieval Evals
+ Grounding Evals
+ Conversation Evals

Level 3:
All Level 1 and Level 2 Evals
+ Tool-Use Evals
+ Trajectory Evals
+ State-Change Evals

Level 4:
All Previous Evals
+ Coordination Evals
+ Delegation Evals
+ Multi-Agent Simulation

The higher the project level, the broader the evaluation surface becomes.


4. What Should Be Shared Across All AI Projects?

Every AI project should use a common enterprise evaluation foundation.

4.1 Business Task Contract

Each project must clearly define:

Example:

Given a warranty claim, vehicle information, repair notes and warranty policies, the system should determine coverage eligibility, provide supporting evidence and escalate ambiguous or high-risk cases for human review.


4.2 Shared Failure Taxonomy

The company should maintain a common failure taxonomy.

Typical categories include:

Incorrect answer
Missing information
Unsupported claim
Wrong citation
Invalid format
Policy violation
Privacy exposure
Unauthorized action
Incorrect escalation
Tool failure
Excessive latency
Excessive cost

Individual projects may add domain-specific categories, but the high-level taxonomy should remain consistent.

This makes it possible to compare reliability across projects.


4.3 Shared Eval Dataset Standards

Every Eval case should follow a common schema.

{
  "case_id": "WC-00125",
  "project": "warranty-assistant",
  "input": {},
  "expected_behavior": {},
  "reference_answer": null,
  "slice_tags": [
    "high_value_claim",
    "policy_exception"
  ],
  "risk_level": "critical",
  "source": "production_anonymized",
  "rubric_version": "v1.2"
}

Each project should maintain several datasets:

DatasetPurpose
Golden DatasetHigh-quality cases labeled by domain experts
Regression DatasetPreviously discovered failures
Edge-Case DatasetUnusual but valid scenarios
Adversarial DatasetSecurity, policy and prompt-injection tests
Production SampleRecent real-world traffic
Synthetic DatasetCoverage expansion when real data is limited

Synthetic data is useful, but it should not replace real production cases.


4.4 Shared Evaluator Stack

All projects should use a combination of evaluators.

Deterministic Evaluators

Use code whenever the expected result can be objectively checked.

Examples:

Human Evaluators

Use domain experts for:

LLM-Based Evaluators

Use LLM Judges for scalable semantic evaluation.

Examples:

LLM Judges must be calibrated against human labels before being trusted.


4.5 Shared Risk and Severity Model

Not every failure should have the same weight.

SeverityMeaningExample
CriticalLegal, safety or major financial impactUnauthorized payment approval
HighSerious business or customer impactIncorrect policy interpretation
MediumHuman correction requiredMissing claim detail
LowUser-experience issueResponse is unnecessarily long

A high average score must never hide critical failures.

For example:

Overall accuracy: 97%
Critical unauthorized actions: 3

This system should not be released.


4.6 Shared Experiment Tracking

Every experiment should capture:

Dataset version
Prompt version
Model version
Retrieval configuration
Tool version
Evaluator version
Rubric version
Temperature and model parameters
Latency
Token usage
Cost
Evaluation results

Without versioning, teams cannot explain why a model improved or regressed.


4.7 Shared CI/CD Release Gates

Every AI project should run automated Evals before deployment.

A release decision should include:

Example:

Critical failures = 0
Schema validity = 100%
Task success rate ≥ 95%
No critical slice regresses by more than 2%
p95 latency ≤ 8 seconds
Average cost within budget

4.8 Shared Production Feedback Loop

Offline evaluation alone is not enough.

The production loop should be:

Production Trace
      ↓
Automated Online Evaluation
      ↓
Human Review for Selected Cases
      ↓
Failure Classification
      ↓
New Regression Test
      ↓
System Improvement
      ↓
CI/CD Validation

Every important production failure should eventually become a regression test.


5. Level 1: AI-Enabled Workflow

Definition

Level 1 projects perform a bounded transformation from input to output.

Typical examples include:

The model normally does not retrieve external knowledge, call tools or make autonomous decisions.

Input
  ↓
Prompt and Model
  ↓
Structured or Text Output

Primary Evaluation Question

Did the system generate the correct output in the required format?

Recommended Eval Strategy

Structured Output Accuracy

For extraction and classification:

Format and Schema Validation

Semantic Quality

For summarization or generation:

Operational Metrics

Level 1 Example: Warranty Claim Extraction

Input:

Customer repair notes and claim documents

Expected output:

{
  "vehicle_id": "12345",
  "repair_date": "2026-06-15",
  "claim_amount": 2850,
  "repair_category": "engine",
  "missing_information": []
}

Recommended Evals:

Typical Release Gate

JSON validity = 100%
Required-field completion ≥ 99%
Critical field accuracy ≥ 98%
Overall field accuracy ≥ 95%
No sensitive data leakage

6. Level 2: RAG Application or Chatbot

Definition

Level 2 projects retrieve enterprise knowledge and generate answers based on that knowledge.

Examples include:

User Question
      ↓
Query Processing
      ↓
Document Retrieval
      ↓
Context Assembly
      ↓
LLM Answer

Primary Evaluation Questions

Did the system retrieve the right information?

Is the final answer supported by the retrieved information?

Level 2 Inherits All Level 1 Evals

Level 2 systems still require:

However, additional RAG-specific evaluations are required.

Retrieval Evals

Recommended metrics include:

The goal is not only to determine whether the answer is wrong, but also whether retrieval caused the error.

Grounding Evals

Evaluate whether:

Conversation Evals

For multi-turn systems, evaluate:

Abstention and Escalation

A good RAG system should not answer every question.

Evaluate whether it:

Level 2 Example: Warranty Policy Assistant

User question:

Is an engine repair covered if the vehicle is outside the standard warranty period but has an extended coverage plan?

The system must:

  1. Retrieve the correct standard warranty policy
  2. Retrieve the extended coverage policy
  3. Identify applicable exclusions
  4. Generate a supported answer
  5. Cite the correct policy sections
  6. Escalate if coverage terms are ambiguous

Recommended Evals:

Correct policy retrieval
Relevant chunk Recall@K
Coverage answer correctness
Citation correctness
Groundedness
Completeness
Correct abstention
Multi-turn consistency

Typical Release Gate

Relevant-document Recall@5 ≥ 95%
Citation accuracy ≥ 98%
Unsupported claim rate ≤ 2%
Correct escalation ≥ 95%
Critical policy errors = 0

7. Level 3: Single Agent with Tools

Definition

A Level 3 project allows an AI agent to decide what actions to take and interact with external systems.

Examples include:

User Goal
   ↓
Agent Planning
   ↓
Tool Selection
   ↓
Tool Arguments
   ↓
Tool Execution
   ↓
State Update
   ↓
Continue, Retry, Stop or Escalate

Primary Evaluation Question

Did the agent complete the task correctly, safely and efficiently?

The final answer alone is not enough.

Two agents may produce the same final message, but one may have called the wrong database, exposed sensitive information or modified the wrong record.

Level 3 Inherits Level 1 and Level 2 Evals

Level 3 still requires:

It also requires evaluation of the agent trajectory.

Tool Selection Evals

Evaluate whether the agent:

Tool Argument Evals

Evaluate:

Trajectory Evals

Evaluate the complete sequence of actions:

Plan
Tool call
Observation
Updated plan
Next action
Final result

Important metrics include:

State-Change Evals

When an agent changes an external system, evaluate the resulting state.

For example:

The best evaluation is often not:

Did the agent say it completed the task?

It is:

Is the final system state correct?

Safety and Permission Evals

Evaluate whether the agent:

Level 3 Example: Warranty Claim Processing Agent

The agent may:

  1. Read a warranty claim
  2. Retrieve warranty policies
  3. Query the vehicle database
  4. Validate coverage
  5. Calculate the eligible amount
  6. Update the claim system
  7. Escalate high-risk cases

Recommended Evals:

Claim decision correctness
Correct policy retrieval
Correct tool selection
Tool argument accuracy
Calculation accuracy
External state correctness
Approval-policy compliance
Recovery from API failures
Correct escalation
Step count
Latency and cost

Typical Release Gate

Unauthorized actions = 0
Critical state-change errors = 0
Tool argument accuracy ≥ 99%
End-to-end task completion ≥ 95%
Correct escalation ≥ 98%
Duplicate action rate ≤ 1%

8. Level 4: Multi-Agent or Agentic System

Definition

Level 4 projects contain multiple specialized agents that collaborate, delegate tasks and share state.

Examples include:

Coordinator Agent
     ↓
Specialist Agents
     ↓
Tools and Data Sources
     ↓
Shared Memory or State
     ↓
Review and Decision Agent
     ↓
Final Business Outcome

Primary Evaluation Question

Did the entire system achieve the global objective through effective, safe and reliable coordination?

Level 4 Inherits All Previous Evals

Every individual agent still requires:

Level 4 adds system-level coordination evaluations.

Delegation Evals

Evaluate whether:

Handoff Evals

Evaluate whether:

Shared-State Evals

Evaluate:

Coordination Evals

Evaluate whether agents:

System-Level Resilience

Test situations such as:

Simulation-Based Evals

Multi-agent systems often require simulated environments.

A scenario may include:

Initial business state
User goal
Available agents
Available tools
Permission model
Injected failures
Expected final state
Maximum cost and steps

Evaluation should focus on the final environment state and the full event history.

Level 4 Example: Multi-Agent Warranty Investigation

Possible agents:

Recommended Evals:

Correct task delegation
Handoff completeness
Evidence consistency
Conflict resolution
Global decision correctness
Shared-state integrity
Duplicate-work rate
Agent-loop detection
System recovery
Total cost
Total processing time
Final claim-system state

Typical Release Gate

Critical coordination failures = 0
Conflicting final actions = 0
Shared-state corruption = 0
Global task success ≥ 95%
Successful recovery from agent failure ≥ 90%
No uncontrolled loops
Execution remains within cost and step budgets

9. Evaluation Strategy by Project Level

Eval AreaLevel 1 WorkflowLevel 2 RAG/ChatbotLevel 3 AgentLevel 4 Multi-Agent
Output correctnessRequiredRequiredRequiredRequired
Schema validationRequiredRequiredRequiredRequired
Business-rule complianceRequiredRequiredRequiredRequired
Cost and latencyRequiredRequiredRequiredRequired
Retrieval qualityOptionalRequiredRequiredRequired
GroundednessOptionalRequiredRequiredRequired
Citation accuracyOptionalRequiredRequiredRequired
Multi-turn consistencyOptionalRequiredRequiredRequired
Tool selectionNot applicableLimitedRequiredRequired
Tool argument accuracyNot applicableLimitedRequiredRequired
Trajectory evaluationNot applicableLimitedRequiredRequired
External state validationNot applicableNot typicalRequiredRequired
Delegation qualityNot applicableNot applicableNot typicalRequired
Handoff qualityNot applicableNot applicableNot typicalRequired
Shared-state consistencyNot applicableNot applicableLimitedRequired
Coordination and conflict resolutionNot applicableNot applicableLimitedRequired
Simulation and chaos testingLimitedLimitedRecommendedRequired

The key message is:

Higher-level systems require broader evaluation, but they do not eliminate the need for lower-level tests.


10. A Shared Enterprise Eval Architecture

The company should build one shared Eval Core and several reusable Eval Packs.

                    Enterprise Eval Platform

┌──────────────────────────────────────────────────────────────┐
│                    Shared Eval Core                          │
│                                                              │
│ Dataset Registry                                             │
│ Human Annotation and Review                                  │
│ Evaluator SDK                                                │
│ LLM Judge Management                                         │
│ Experiment Tracking                                          │
│ Trace and Log Storage                                        │
│ CI/CD Release Gates                                          │
│ Production Monitoring                                        │
│ Dashboards and Governance                                    │
└──────────────────────────────────────────────────────────────┘
             │              │              │
             ▼              ▼              ▼
      Workflow Pack      RAG Pack       Agent Pack
                                              │
                                              ▼
                                      Multi-Agent Pack

Shared Eval Core

The shared platform should provide:

Dataset management
Evaluator execution
Prompt and model versioning
Experiment comparison
Human review workflow
Judge calibration
Tracing
Release gates
Online monitoring
Failure analytics
Access control
Audit history

Workflow Eval Pack

Reusable evaluators for:

RAG Eval Pack

Reusable evaluators for:

Agent Eval Pack

Reusable evaluators for:

Multi-Agent Eval Pack

Reusable evaluators for:


11. Common Eval Lifecycle for Every Project

Regardless of project level, every AI project should follow the same lifecycle.

Step 1: Define the Business Outcome

Do not begin with model metrics.

Begin with:

Step 2: Instrument the Application

Capture:

Input
Output
Prompt version
Model version
Retrieved documents
Tool calls
Tool results
Agent steps
Final state
Latency
Tokens
Cost
User feedback

The exact trace becomes richer at higher project levels.

Step 3: Collect Real Cases

Start with approximately 50–200 high-quality real examples.

Include:

Step 4: Ask Domain Experts to Label Cases

For each result, ask:

Pass or fail?
Why?
What type of failure occurred?
What should the correct behavior be?
How severe is the failure?

Step 5: Build Deterministic Checks First

Do not use an LLM Judge for something that code can verify reliably.

Step 6: Add Calibrated LLM Judges

Compare Judge results against human labels.

Measure:

Step 7: Compare Baseline and Candidate Systems

For every meaningful change:

Current Production Version
             vs.
Candidate Version

Compare quality, safety, cost and latency.

Step 8: Add Release Gates

Block releases when:

Step 9: Run Online Evals

Use:

Step 10: Convert Failures into Regression Tests

Every serious production failure should become a permanent test case.


12. Warranty Claim Example Across All Four Levels

The same business domain can evolve through all four levels.

Level 1: Claim Extraction

The system extracts:

Claim amount
Repair date
Vehicle ID
Repair category
Customer information

Primary Evals:

Field accuracy
Schema validity
Missing-field detection
Classification accuracy

Level 2: Warranty Policy Assistant

The system retrieves warranty documents and answers coverage questions.

Additional Evals:

Policy retrieval
Groundedness
Citation accuracy
Correct abstention
Conversation consistency

Level 3: Claim Processing Agent

The agent queries systems, calculates coverage and updates claim status.

Additional Evals:

Tool selection
Tool argument accuracy
Calculation accuracy
Workflow completion
External state validation
Authorization compliance

Level 4: Multi-Agent Claim Investigation

Specialized agents investigate policies, vehicle history, fraud risk and financial impact.

Additional Evals:

Delegation quality
Handoff completeness
Evidence consistency
Conflict resolution
Shared-state integrity
Global task success

This example demonstrates that the Eval Framework grows with the project.

It does not restart at every level.


13. Roles and Responsibilities

RolePrimary Responsibility
Product ManagerDefine user success and product acceptance criteria
Business OwnerDefine business value and risk tolerance
Domain ExpertDefine rubrics and label difficult cases
AI EngineerBuild prompts, agents and evaluators
Data ScientistAnalyze metrics, slices and evaluator quality
Data EngineerBuild dataset and feedback pipelines
Platform EngineerBuild tracing, CI/CD and shared Eval infrastructure
Security and LegalDefine privacy, safety and compliance requirements
Human Operations TeamReview escalations and production failures

Evals should not be owned only by the AI engineering team.

They are a cross-functional product responsibility.


14. Recommended Governance Cadence

For Every Pull Request

Run:

Unit Evals
Regression Evals
Safety Evals
Cost and latency checks

Every Week

Review:

New production failures
User negative feedback
Judge disagreements
Critical slices

Every Month

Update:

Golden Dataset
Production Dataset
Failure Taxonomy
Thresholds
Evaluator prompts

Every Quarter

Perform:

Red-team testing
Policy review
Risk review
Judge recalibration
Architecture-level failure testing

For Every Major Model Upgrade

Run:

Full baseline comparison
Repeated-run consistency tests
Slice-level regression analysis
Canary deployment
Production monitoring

15. A 90-Day Implementation Roadmap

Days 1–30: Build the Foundation

Deliverables:

Project-level definitions
Shared task contract template
Risk and severity framework
Failure taxonomy
Dataset schema
Tracing standard
First golden dataset
Human evaluation rubric

Start with one Level 1 or Level 2 project.

Days 31–60: Automate the Eval Process

Deliverables:

Deterministic evaluator library
Calibrated LLM Judges
Experiment runner
Version tracking
Regression suite
CI/CD release gates
Eval dashboard

Days 61–90: Build the Production Loop

Deliverables:

Online evaluation sampling
Human review queue
Production feedback pipeline
Automatic regression-case creation
Risk dashboards
Governance meetings
RAG and Agent Eval Packs

After the shared foundation is stable, expand to Level 3 and Level 4 projects.


16. Common Mistakes

Mistake 1: Using One Generic Quality Score

An overall score hides the cause and severity of failures.

Use multiple dimensions and slices instead.

Mistake 2: Starting with Tools Instead of Business Risks

The first question should not be:

Which Eval platform should we buy?

The first question should be:

What failure would create the greatest business harm?

Mistake 3: Evaluating Only the Final Answer

For RAG systems, evaluate retrieval.

For agents, evaluate tools and state changes.

For multi-agent systems, evaluate coordination.

Mistake 4: Trusting an Uncalibrated LLM Judge

An LLM Judge is another model and can also be wrong.

It must be evaluated against domain-expert labels.

Mistake 5: Looking Only at Averages

A system may perform well overall but fail on:

High-value claims
Policy exceptions
New product types
Non-English input
Long documents
Security-sensitive requests

Always evaluate important slices separately.

Mistake 6: Treating Evals as a One-Time QA Activity

Evals should operate continuously across:

Development
Experimentation
CI/CD
Deployment
Production monitoring
Incident review

17. Final Takeaways

Takeaway 1

Different levels of AI projects require different evaluation strategies.

Takeaway 2

Higher-level systems inherit lower-level Evals and add new evaluation layers.

Takeaway 3

The company should build one shared Eval Core instead of separate frameworks for every project.

Takeaway 4

Level-specific Eval Packs should cover:

Level 1: Output correctness
Level 2: Retrieval and grounding
Level 3: Tools, trajectories and state changes
Level 4: Coordination, delegation and system behavior

Takeaway 5

Real production failures, domain-expert judgments and continuous feedback are more valuable than generic benchmark scores.

Takeaway 6

The final goal is not to prove that an LLM is intelligent.

The final goal is to demonstrate that the entire AI system is:

Useful
Correct
Reliable
Safe
Cost-effective
Observable
Governable

Closing Message

A successful enterprise Eval Framework should answer three questions:

  1. Did the AI system produce the correct business outcome?
  2. Can we understand why it succeeded or failed?
  3. Can we prevent the same failure from happening again?

The most effective architecture is:

One Shared Enterprise Eval Core
+
Level-Specific Evaluation Packs
+
Continuous Production Feedback

This approach allows the company to support simple AI workflows today while building a scalable foundation for future agentic systems.

这份内容已经按照约 15 页 Knowledge Share 的逻辑组织,可以直接用于讲解,也能进一步压缩成 PPT。最值得在演示中重点可视化的是“四级项目模型”“Shared Eval Core + Eval Packs”和 Warranty Claim 从 Level 1 演进到 Level 4 的案例。