docs: Add FastEmbed usage example

#1
by anush008 - opened

Hi! This PR adds a short example of running potion-retrieval-32M with FastEmbed, a lightweight, fast, Python library built for embedding generation.

FastEmbed has supported the potion models since v0.9.1. It loads model.safetensors straight from this repo, so it uses the same weights as model2vec.

I tested the snippet with fastembed==0.9.1. The embeddings match model2vec (cosine similarity 1.0).

Hey @anush008 ,

Please don't add these on all our models. We're going to think about whether we want to support it first, and will get back to you. For now, let's discuss on the potion-base-8m repo.

stephantulkens changed pull request status to closed

Hi @stephantulkens . Thanks.
Please let me know whenever possible.

Sign up or log in to comment