|
--- |
|
license: apache-2.0 |
|
--- |
|
## Model |
|
OpenVINO Version of bce-embedding-base_v1. By: https://huggingface.co/spaces/sentence-transformers/backend-export |
|
|
|
|
|
## Inference |
|
|
|
```python |
|
from sentence_transformers import SentenceTransformer |
|
|
|
# 1. Load the model from the Hugging Face Hub |
|
model = SentenceTransformer( |
|
"guoch/bce-embedding-base_v1-openvino", |
|
backend="openvino", |
|
) |
|
|
|
# 2. Inference works as normal |
|
embeddings = model.encode(["The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium."]) |
|
similarities = model.similarity(embeddings, embeddings) |
|
``` |