https://huggingface.co/sentence transformers/all MiniLM L6 v2 with ONNX weights to be compatible with Transformers.js. Usage (Transformers.js) If you haven't already, you can install the Transformers.js JavaScript library from NPM using: You can then use the model to compute embeddings like this: You can convert this Tensor to a nested JavaScript array using .tolist() :
We use cookies for essential functionality and analytics. You can accept or reject analytics cookies.Cookie policy