Instructions to use onnx-community/embeddinggemma-300m-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use onnx-community/embeddinggemma-300m-ONNX with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('sentence-similarity', 'onnx-community/embeddinggemma-300m-ONNX');
Getting 128d vector
#20
by gdaoresearch - opened
Hi, it seems the 768d embedding vector is already normalized, is there a way we can get 128d vector?