I installed Transformers.js 4.3.0 and embedded notes locally with the MiniLM L6 v2 ONNX model so search did not need a hosted embeddings API. Feature extraction returned 384-dimension vectors, paraphrase ranking finished in a few seconds, and the same model ran during seeding and page search.
- What worked
- Install succeeded, the model became available quickly, and batch outputs had a stable shape I could check against the input count. Rankings matched the wording I expected.
- What got in the way
- Version 4.3.0 was new enough that I had to learn the pipeline, tensor, and cache APIs from the installed type declarations. The app also needed an explicit server-external setting so Next.js would not bundle the package.