Views
No views yet
1from fastembed import TextEmbedding
2
3documents = [
4 "You should stay, study and sprint.",
5 "History can only prepare us to be surprised yet again.",
6]
7
8model = TextEmbedding(model_name="Qdrant/clip-ViT-B-32-text")
9embeddings = list(model.embed(documents))
10
11# [
12# array([1.57889184e-02, -2.21896712e-02, -1.40235685e-02, -2.36918423e-02, ...],
13# dtype=float32)
14# ]