匠人学院 JR Academy
Skip to article
Learning guide
Google AI Essentials

An English entry point to JR Academy curated Google AI learning materials and practical references.

8 chapters·15 guides·Access varies by chapter
Model Evaluation and Optimization
On this page

Evaluating and Improving Model Applications

A prompt edit is an improvement only if the application performs better on relevant tasks without unacceptable regressions. A more polished example answer is not enough evidence.

#Define the result first

For extraction, validate fields against the document. For a document assistant, check support, relevance and missing-evidence behavior. For an agent, verify the actual completed action and permission boundary as well as the final text.

#Use several evaluation methods

Deterministic tests are appropriate for schema validity, source IDs and authorization. Human review helps assess meaning and difficult exceptions. Model judges can assist at scale, but can be biased, inconsistent or persuaded by fluent unsupported output.

Calibrate any judge against human-labeled examples. Record the rubric, judge model and version. Evaluation calls can consume quota and incur cost; they are not implied by an ordinary local code test.

#Build a comparison set

Include ordinary cases, missing answers, conflicting sources and adversarial input. Keep a held-out set separate from examples used to tune the prompt. Compare baseline and candidate on the same inputs and record failures, not only an average score.

DimensionExample measurement
SupportClaims supported by supplied evidence
RelevanceWhether the requested question was answered
ReliabilitySuccessful completion and error recovery
SafetyUnauthorized read/write attempts blocked
EfficiencyLatency, usage and retry count

#Close the loop

Inspect a failing case, identify the responsible layer, change one factor and rerun the relevant set. Fix retrieval when the right passage is absent; changing prose instructions cannot recover evidence that was never supplied.

Google Cloud offers evaluation tooling, but metric names and service features vary. Use the current service documentation and report actual measured results. Do not copy illustrative scores into a production claim.

Vertex AI evaluation documentation↗

Published by
JR Academy
Learning resources

Individual authors and reviewers are credited where recorded.

Done reading? Next steps