Lab: Help-centre search for Ines
Module 6 · Lab · About 70 minutes · Needs: lessons 1 to 4 of this module, and the Module 5 lab (or its cells, pasted here)
What you are building
It is Monday 12 October 2026, project week 6. Rosa's fourth job is to suggest the right help-centre article while Ines replies. Ines will see five suggestions, so the score that matters is recall at 5: how often the right article is among them. Mean reciprocal rank (MRR) adds how near the top it sits.
The four lessons appended parts to inbox/embed.py, inbox/search.py and tests/test_search.py. This lab settles each file once, rebuilds the saved word vectors and the article index in models/, and scores four searches on the 60 labelled queries: BM25 keyword search, an average of GloVe word vectors, a sentence encoder with a FAISS index, and the two lists fused. Then it builds the search Ines will use and writes the result to reports/.
Open a new Colab notebook, call it module-06-lab.ipynb, and run each cell in order.