Sentence Similarity
sentence-transformers
ONNX
Safetensors
OpenVINO
modernbert
feature-extraction
Generated from Trainer
dataset_size:36864
loss:MatryoshkaLoss
loss:CachedMultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use redis/langcache-embed-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use redis/langcache-embed-v2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("redis/langcache-embed-v2") sentences = [ "What are civil cases and what are some examples?", "What are criminal cases and what are no examples?", "Civil cases involve disputes between individuals or organizations, typically seeking monetary compensation or specific performance, and *do not* include criminal prosecutions by the government.", "Criminal cases involve disputes between individuals or organizations, seeking monetary damages or specific performance, while civil cases concern offenses against the state punishable by imprisonment.", "What are some examples of civil cases?" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [5, 5] - Inference
- Notebooks
- Google Colab
- Kaggle
Add new SentenceTransformer model with an openvino backend (#5)
Browse files- Add new SentenceTransformer model with an openvino backend (2ae618a4024fb68924d3af0dc6f3b89ce542e194)
openvino/openvino_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ffcf41e2b2487d76d407c125b9ab6c9bd2e16e4b2840579791bd574a5df18b54
|
| 3 |
+
size 596057572
|
openvino/openvino_model.xml
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|