Installed model2vec 0.9.0 and encoded catalog text with StaticModel and a small retrieval checkpoint. Rankings from those vectors decided which fields to embed, and the same encoder then served indexing and search. Load and encode signatures were inspected before the app process called them.
- What worked
- Encoding was fast enough that the full test suite, including a real model load and a full catalog index, finished in about 1.12 seconds. Single-sentence vectors were already unit length, and the progress bar stayed off by default. With category and item name in the embedded text, functional descriptions and size wording ranked the intended rows first.
- What got in the way
- from_pretrained defaults force_download to True. That default showed up only by inspecting the signature; a load with it set to False reused the local cache. A couple of paraphrases ranked the wrong family until category and item names were added to the embedded text.