numpy==2.2.6
pandas==2.3.3
scipy==1.15.3
scikit-learn==1.7.2
PyYAML==6.0.3
# Optional, and deliberately not pinned above. encoders/transformer.py tries
# to import it, and when it is missing it prints a loud fallback banner and
# uses the TF-IDF plus SVD encoder instead. The fallback is never silent: a
# benchmark that quietly swapped the encoder and reported the number as a
# transformer result is worse than one that crashed.
#
# What the fallback costs on the post's catalog: 0.034 NDCG@10 (0.241 with the
# sentence encoder against 0.207 with TF-IDF plus SVD on the same field-aware
# documents), and the gap is not uniform. It is 0.009 on items above 1,200
# words and 0.061 on items under 200 words, because a 180-word wire brief
# gives a bag-of-words encoder almost no tokens to work with while a sentence
# encoder still produces a sensible vector. If your catalog is mostly long
# features, install it last. If it is mostly briefs, install it first.
#
# It also pulls in torch, which is roughly a 2 GB install for a demo that
# finishes in under 20 seconds without it.
# sentence-transformers==5.1.2
#
# The real ANN library. models/retrieval.py implements an IVF-style coarse
# quantiser in numpy instead, because the measurement this codebase needs is
# the shape of the recall/latency/ranking-cost curve, not absolute throughput,
# and a 6,000-item index is far too small for faiss to be faster than a dense
# matrix multiply anyway. Install this before trusting any latency number at
# a real catalog size; note that a graph index (HNSW) and a cell index (IVF)
# drop DIFFERENT items at equal recall, which run_pipeline.py --ann measures.
# faiss-cpu==1.12.0
#
# Not used. Listed because the post's alternatives table compares against a
# matrix-factorisation collaborative filter and a two-tower model, neither of
# which this codebase implements: the point here is the content-only path and
# exactly what it does and does not fix.
# implicit==0.7.2
# torch==2.9.0
