AI Application Evaluation, Testing and Observability / Readiness and the application task

Check readiness and the meaning of course evidence

Lesson 1 of 34. Open to read. No account needed.

A lending assistant returns a confident answer in a fraction of a second. Has it succeeded? You need the lending rule, the question, the answer and a way to check their relationship. Speed alone cannot settle that question. Equally, a correct answer on one prepared example cannot establish reliability for future requests.

By the end of this lesson, you should be able to check the course's starting abilities, choose an appropriate practice route and describe exactly what a piece of course evidence can support.

Three kinds of work

An evaluation compares behavior with stated criteria. For example, does an answer give the seven-day lending period required by the supplied policy? The criteria must exist before a score has meaning.

A test runs a specific check with an expected result. A test might require the application to reject a response missing its evidence field. A passing test supports that checked behavior under its particular inputs and conditions.

Observability uses evidence emitted by a running system to investigate its behavior. This course uses traces to follow operations within a request, logs to record selected events, and metrics to summarize quantities such as counts and durations. You will learn how to create and interpret each. A trace can show that a document lookup ran; you still need a quality check to decide whether the selected document supports the answer.

These activities overlap. They answer different questions, so retain the question, input and conditions beside every result.

Follow the application boundary

The fictional Alderwick Equipment Desk answers equipment-loan questions. A request is one input asking the application to do something. Application code selects relevant policy text and can read a fictional loan record. It passes that context to a model adapter, a function that represents the boundary where a model response would enter the application. The application then returns an answer and evidence IDs.

An instruction tells the model what behavior is wanted. Retrieved text supplies information the answer may use. A tool performs a named operation, such as looking up a loan. These roles differ: a retrieved passage is evidence to interpret, not permission to perform an arbitrary action.

In the core exercises, the adapter returns course-authored synthetic responses. Synthetic means written for the exercise rather than collected from real customers or generated by a provider run. Replay selects one of those prepared responses. It lets you reproduce a wrong answer or a timeout without a key, a model download or an external service.

The surrounding Python checks really run. Later, the OpenTelemetry software development kit (SDK, a library used by the application) really emits telemetry to a local Collector, a program that receives it. A real measurement around a replay operation remains a measurement of replay. It is not a measurement of fresh model generation, also called inference.

Read a result with its origin

The following records are illustrative teaching examples, not observations from a live model or measurements you are expected to reproduce.

RecordWhat it can establishWhat is still missing
An authored fixture says “You may keep the tripod for seven days”The fixture contains that text; a check can compare it with a policyEvidence that any real model produces it
A local timer measures 6 ms around replay and checkingThat operation took about 6 ms in that run, if the timer was used correctlyProvider inference latency and behavior under production load
A response fixture includes reported_input_tokens: 120The exercise supplies 120 as a value for arithmeticA provider report, billing evidence or measured tokenization
A later real Collector receives the known request's span IDThat telemetry item reached that receiverAnswer correctness, complete delivery of all items or a working cloud deployment

The third row is especially easy to misread. A field named “reported” does not create an actual report. Its origin must say whether it is an authored fixture or a value received during a real provider interaction. If fresh inference were added, you would need to record its actual provider/model configuration, inputs, time window and failures. This course's core does not perform that run.

A useful evidence sentence has four parts: what ran, on which input, what was observed, and the limit of the claim. For example: “The local checker accepted the baseline replay response for the tripod policy case; this checks the response/checker combination for that case and does not establish model quality.”

Check the starting abilities

This is an intermediate Python application course. It teaches virtual environments, pytest, evaluation methods and telemetry before using them. It assumes you can already do the following small tasks.

  1. Save a plain text Python file, locate it in a terminal and run it. Explain the difference between the directory you are in and the file you run.
  2. Read functions, loops, lists, dictionaries and imports. Explain what happens when a required dictionary key is absent, and handle that exception.
  3. Read and write JSON. Distinguish a JSON value from the Python code that reads it.

Use this complete, read-only program as a concrete check. Save it as readiness.py in a new directory you own. Run it using your existing Python 3 interpreter from that directory; for example, python3 readiness.py in a macOS or Linux terminal. That command requires an installed python3; it is not an installation instruction. The program prints to the terminal, writes no files and contacts nothing.

import json

def count_supported(records):
    total = 0
    for record in records:
        if record["supported"]:
            total += 1
    return total

records = json.loads('[{"supported": true}, {"supported": false}]')
print(count_supported(records))
try:
    print(records[0]["evidence_id"])
except KeyError:
    print("missing evidence_id")

json.loads turns the supplied JSON text into a list of Python dictionaries; JSON true and false become Python Boolean values. The loop counts only the record whose supported value is true, so the first line printed is 1. Neither record contains evidence_id. Accessing that key raises KeyError; the handler prints missing evidence_id rather than ending with an unhandled exception. Changing the second supported value to true changes the count to 2, but does not add the missing key.

Expected output for the original program:

1
missing evidence_id

Explain that output before moving on. If the code is unfamiliar, practise those Python and terminal abilities first. A command-not-found error means the interpreter is unavailable under that command; it says nothing about the program's logic. A file-not-found error calls for checking the current directory and saved filename. Neither is a reason to alter system Python or use administrator privileges.

Choose a practice route

Reading needs only the course reader. You can inspect supplied examples and reason about failures without installing tools. Reading alone does not demonstrate that you can execute tests or operate a telemetry pipeline.

Local practice uses a directory you own, CPython 3.12 and pinned Python packages. The executable walkthrough initially covers macOS with zsh on ARM64. Linux, Windows and macOS Intel need separate verification; do not translate architecture-specific download commands by guessing. The setup lesson explains this boundary. The core requires no GPU, Docker, cloud account, API key or paid model. Initial setup downloads official packages and a Collector binary; later telemetry traffic stays on the learner's machine.

If your machine cannot run approved local software, continue reading and use an approved personal or disposable environment for practical outcomes. Do not change an organization's security settings to follow the course.

Create readiness-notes.txt in your own directory with three lines: abilities you checked, chosen practice route, and one example of evidence you must still collect. This is your note, not a credential or a report to submit. Keep it when resuming. You may remove the standalone readiness.py after the check; no process or service remains running.

Check Your Understanding

A developer says: “All prepared responses passed our checker. The measured replay duration was below 20 ms. Therefore our new model prompt is correct and fast enough for real users.” Write a replacement conclusion and name two kinds of evidence still needed. Then decide whether you personally are ready for the local setup or should first practise a starting ability.

Answer and Reasoning

Hint 1

Which component produced the answers? Which operation did the timer enclose?

Hint 2

Separate a check of fixed examples from a claim about new generation and from a claim about a population of user requests.

Explained solution

“Our checker accepted these prepared responses, and the timed local replay operation completed below 20 ms in the measured runs.” That is a supported, bounded conclusion. The prompt did not cause new generation in this exercise.

To assess the prompt, collect fresh outputs for a documented model/configuration and suitable cases, including failure behavior, then evaluate those outputs against stated criteria. To assess responsiveness for the intended use, measure the relevant end-to-end requests under representative conditions, with a time window and a defined latency objective. The same fresh run might supply parts of both, but prepared responses and replay timing supply neither by themselves.

Readiness depends on your ability to explain and run the small program and handle files, not on whether you agree with the example conclusion. A reading route is useful, but keep its practical evidence limit explicit.

Further Reading

The Python virtual environment documentation explains the isolation mechanism used in the next lesson. The evidence table and equipment-desk examples here are original course teaching material.

29 more lessons in the full course

Course access opens every lesson and adds revision notes, the Quick Reference, saved progress, bookmarks and your own notes.

INR 199 plus 18% GST. 90 days of online access. No auto-renewal.

Get the full course

This website is operated by VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED, operating as Vectametric.

Corporate Identity Number (CIN): U85499KA2026OPC229822. GSTIN: 29AAMCV8281D1ZS. Registered office: RS NO/38/2A/1 BASTAND, ROAD MAHANTESH NAGAR, Ramdurg, Ramdurg, Belgaum- 591123, Karnataka.

Queries and grievances: Prajval Honnungar, Grievance Officer and Data Protection Contact.

Telephone: +91 94800 09310. Support: support@vectametric.com. Grievances: support@vectametric.com.

Copyright 2026 VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED. All rights reserved.

Vectametric home · Roadmaps · Vecta IT Exams · Vecta Government Exams · Vecta Banking & Finance Exams · Vecta Entrance Exams · About us · Contact · Privacy Policy · Terms and Conditions · No-Refund Policy