AI Fiddler course kit 1.0
Reviewed 18 October 2026

Practical assistant course:
/training/labs/building-ai-assistants/

The separate informational Generative AI course is at
/training/labs/generative-ai-class/ and does not require this kit.

REQUIREMENTS
Python 3.11 or newer. Standard library only; no pip install required.
Extract course_lab.py and lab-data.json into the same directory.
Open a terminal there. On Windows use py -3.11; on macOS/Linux use
python3 when python does not identify your intended interpreter.

OFFLINE LABS (no network, no model download)
python course_lab.py self-test
python course_lab.py classify --text "Prepare a room request for Birch"
python course_lab.py evaluate --split validation
python course_lab.py evaluate --split test
python course_lab.py chat
python course_lab.py request
python course_lab.py request --room cedar --attendees 6
python course_lab.py request --confirm

The naive Bayes baseline fits the train examples on every invocation.
It is a statistical classifier, not an LLM. Training, validation, and
test lists are separate. The supplied test result is 10/12 correct;
two supported requests abstain. Treat this tiny set as a teaching aid.
Model scores are not calibrated probabilities of correctness.

LOCAL MODEL LABS
First install Ollama using the website guide. Start it and obtain a
compatible instruction-following model. Example:
ollama pull qwen3:4b
python course_lab.py classify --engine ollama --text "Show cafe drinks"
python course_lab.py evaluate --engine ollama
python course_lab.py chat --engine ollama
python course_lab.py rag --text "What is Cedar room capacity?"

Use --model YOUR_LOCAL_MODEL to select another available model.
Few-shot examples in the chat request do not fine-tune that model.
All inference requests use http://127.0.0.1:11434, with environment
proxy settings disabled. No external model API or credentials are used.
Model downloads need internet and may be large. Requests time out after
120 seconds; model loading on slower hardware may exceed that limit.

OPTIONAL EMBEDDINGS
ollama pull embeddinggemma
python course_lab.py rag --retriever embedding --text "Which room fits six?"
The default embeddinggemma model uses its documented query/document
retrieval prefixes. Use --embedding-model for another compatible local
model; those names receive raw text. Adapt formatting to its model card
if it requires task prefixes. Do not assume all models use the same ones.
The short corpus is embedded each run for transparency. There is no
persistent vector database. Inspect the printed passages and scores
before judging the generated answer. A score is not proof of truth.

CHAT WORKFLOW
/help lists capabilities; /quit exits. During room field collection,
/cancel discards the draft. Use lowercase cedar or birch, ISO dates,
HH:MM times, an integer attendee count, a fictional requester, and the
explicit exercise timezone Europe/Bucharest. The application validates
the fields, displays them, and asks for CONFIRM. Other confirmation text
discards the draft. Invalid fields stop that draft; start again to repair.
The interface does not support freeform topic switching during field
collection. This limitation is discussed in the course.

BOUNDARIES
All organizations, policies, and examples are fictional. There is no
live availability, actual booking, email, order, or payment integration.
The request command creates no file and performs no network request.
Even --confirm means only prepared_draft; reservation_created stays false.
No chat history is saved. Closing the process discards the session.
The sample date is fixed for repeatability, and is not checked against
the current date. No holiday or real-calendar validation is performed.

FILES
course_lab.py - readable implementation and offline contract checks
lab-data.json - original labelled examples, policies, and static answers
README.txt - setup and command reference

TROUBLESHOOTING
File missing: keep the two code/data files beside one another.
Connection error: verify Ollama is running and the model exists.
Invalid JSON: retain the failure and check the model's structured-output
support. The program rejects invalid output and takes no action.
Weak retrieval: inspect the selected source IDs; compare wording and
embedding retrieval before rewriting the answer prompt.

Offline and simulated API checks validate the implementation. They do
not establish reliability for your chosen model or machine. Run the
course assessments and record actual outcomes in your own environment.
