Course Wiki

Monitoring — LLM Zoomcamp Module 5

--- video_url: 'https://www.youtube.com/watch?v=lbEj3Waxs1U&list=PL3MmuxUbc_hLZFNgSad56pDBKK8KO0XIv' --- # Monitoring

LLM Zoomcamp › Module 5: Monitoring › Monitoring

Notes


video_url: “https://www.youtube.com/watch?v=lbEj3Waxs1U&list=PL3MmuxUbc_hLZFNgSad56pDBKK8KO0XIv”

Monitoring

In the previous module we evaluated our system offline, before anyone used it. We measured search quality with Hit Rate and MRR, and answer quality with cosine similarity and an LLM judge.

But once we deploy, real people start asking real questions. The offline numbers stop telling the whole story. We don’t know how long answers take, what they cost, or whether anyone finds them useful. We need to watch the system while it runs.

That’s monitoring: online evaluation. We collect metrics from the running system and put them on a dashboard. Then we can see how it performs with real traffic.

For every question that comes in, there’s a lot we can capture:

Collecting and viewing all of this takes three new pieces:

We build all three on top of the RAG pipeline from the earlier modules. We don’t rebuild the RAG part. We wrap it in a Streamlit app and save every interaction to PostgreSQL. Then we put a dashboard in front of the data. At the end we add Grafana for a more powerful view.

We focus on RAG here. Monitoring an agent works almost the same way, so we leave it as homework. The agents module already has the pieces you need to apply these same ideas there.

Key concepts

Sources


DataTalks.Club. Hosted on GitHub Pages. Built with Rustkyll. We use cookies.