On your own machine
Set it up first
- Install Python 3.12.15
- Install bm25s 0.3.16, faiss-cpu 1.16.0, lightgbm 4.7.0, numpy 2.5.5, pandas 3.1.1, pystemmer 3.1.0, scikit-learn 1.9.1 and scipy 1.18.1, at exactly those versions
- Get the book's data
- Fix whatever doesn't match, until your output matches the book's
Then you can start the chapter.
Free: the book's notebooks, with its code and data, from GitHub