docs: Add FastEmbed usage example

#7

Hi! This PR adds a short example of running potion-base-8M 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).

anush008 changed pull request title from Add FastEmbed usage example to docs: Add FastEmbed usage example
Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment