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="BAAI/bge-large-en-v1.5")
9embeddings = list(model.embed(documents))
10
11# [
12# array([1.96449570e-02, 1.60677675e-02, 4.10149433e-02...]),
13# array([-1.56669170e-02, -1.66313536e-02, -6.84525725e-03...])
14# ]