guoch commited on
Commit
02d4374
·
verified ·
1 Parent(s): cfbf08f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +22 -3
README.md CHANGED
@@ -1,3 +1,22 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ ---
4
+ ## Model
5
+ OpenVINO Version of bce-embedding-base_v1. By: https://huggingface.co/spaces/sentence-transformers/backend-export
6
+
7
+
8
+ ## Inference
9
+
10
+ ```python
11
+ from sentence_transformers import SentenceTransformer
12
+
13
+ # 1. Load the model from the Hugging Face Hub
14
+ model = SentenceTransformer(
15
+ "guoch/bce-embedding-base_v1-openvino",
16
+ backend="openvino",
17
+ )
18
+
19
+ # 2. Inference works as normal
20
+ embeddings = model.encode(["The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium."])
21
+ similarities = model.similarity(embeddings, embeddings)
22
+ ```