text2vec using inference API

#11
by Michelangiolo - opened

Hi,

is there a way we can convert the text to a vector using the inference API, rather than hosting sentence-transformers?

Thank you

I'm interested in this as well, it seems that the hosted inference API will only do sentence similarity scores, but it is not able to return vector embeddings, is this correct?

Sentence Transformers org

Hello!

Please refer to https://discuss.huggingface.co/t/using-accelerated-inference-api-to-produce-sentense-embeddings/6223/3. Omar there mentions an experimental API that you can call to use Feature Extraction rather than Sentence Similarity:
This is the exact API URL: https://api-inference.huggingface.co/pipeline/feature-extraction/sentence-transformers/all-MiniLM-L6-v2

Replace the URL from this snippet with the aforementioned one, and you'll have a free & working embedding API. Hope this helps!

  • Tom Aarsen
tomaarsen changed discussion status to closed

This api is down

Sentence Transformers org

The API should be all back as of 12 hours ago!

why api is still down?

Sign up or log in to comment