shubham0204 / Sentence-Embeddings-Android

Embeddings from sentence-transformers in Android! Supports all-MiniLM-L6-V2, bge-small-en, snowflake-arctic models and more
https://proandroiddev.com/from-python-to-android-hf-sentence-transformers-embeddings-1ecea0ce94d8
Apache License 2.0
24 stars 1 forks source link

Embedding Vector Length #10

Closed sashokbg closed 1 week ago

sashokbg commented 1 week ago

Hello, is it possible to specify the embedding vector length ?

shubham0204 commented 1 week ago

The length of the vector embedding is a property of the model itself. It depends on the dimensions of the last layer of the model. We can reduce the dimensions of the embeddings by the means of dimensionality reduction, using PCA or t-SNE.