Exercise 2 — Fault probability and an explanation

Guided practice8 min
Time
40 min
You need
Exercise 1 done, Ollama running with llama3.2 and nomic-embed-text
Deliverable
week14/app_full.py showing M004 on 2025-12-18 in red, with an explanation from the pump manual

The lab kit of the course: https://github.com/hrhouma2/aiopsatlas-ml-data-diagnostics-labs-en

Goal

The supervisor now wants a verdict, not only a chart. You add to the page the fault probability of the last 30 days from the random forest, a green, orange or red status, and an "Explain" button that asks llama3.2 with the three closest chunks of the right manual. The logic goes in week14/northpeak.py, without Streamlit. The page week14/app_full.py only draws. Weeks 4, 6, 9 and 10 built each piece; today you write them again in one file, in about 150 lines.

Preview — the rest of the lesson is for enrolled readers.

Already enrolled with a code?

Your access is tied to your account, not to this link. Sign in with the same email you used in class: your course is waiting, no need to enter the code again.

Sign inNo account yet? Create one
This lesson is part of the “Week 14 — Diagnostic application integration” module

The first modules of the course are open to everyone. For the rest you have three options: buy this course once and for all, subscribe, or enter the code handed out in class.

Are you a student on this course?

The code is tied to your account: sign in or create an account and it will be applied automatically when you come back.

No account yet? Create one