Sentence Similarity
sentence-transformers
ONNX
Safetensors
OpenVINO
modernbert
loss:OnlineContrastiveLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use redis/langcache-embed-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use redis/langcache-embed-v1 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("redis/langcache-embed-v1") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -84,7 +84,7 @@ Then you can load this model and run inference.
|
|
| 84 |
from sentence_transformers import SentenceTransformer
|
| 85 |
|
| 86 |
# Download from the 🤗 Hub
|
| 87 |
-
model = SentenceTransformer("
|
| 88 |
# Run inference
|
| 89 |
sentences = [
|
| 90 |
'Will the value of Indian rupee increase after the ban of 500 and 1000 rupee notes?',
|
|
|
|
| 84 |
from sentence_transformers import SentenceTransformer
|
| 85 |
|
| 86 |
# Download from the 🤗 Hub
|
| 87 |
+
model = SentenceTransformer("redis/langcache-embed-v1")
|
| 88 |
# Run inference
|
| 89 |
sentences = [
|
| 90 |
'Will the value of Indian rupee increase after the ban of 500 and 1000 rupee notes?',
|