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 fileschanged capitalization of semantic caching
README.md
CHANGED
|
@@ -39,7 +39,7 @@ model-index:
|
|
| 39 |
name: Cosine Ap
|
| 40 |
---
|
| 41 |
|
| 42 |
-
# Redis
|
| 43 |
|
| 44 |
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [Alibaba-NLP/gte-modernbert-base](https://huggingface.co/Alibaba-NLP/gte-modernbert-base) on the [Quora](https://www.kaggle.com/datasets/quora/question-pairs-dataset) dataset. It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity for the purpose of semantic caching.
|
| 45 |
|
|
|
|
| 39 |
name: Cosine Ap
|
| 40 |
---
|
| 41 |
|
| 42 |
+
# Redis semantic caching embedding model based on Alibaba-NLP/gte-modernbert-base
|
| 43 |
|
| 44 |
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [Alibaba-NLP/gte-modernbert-base](https://huggingface.co/Alibaba-NLP/gte-modernbert-base) on the [Quora](https://www.kaggle.com/datasets/quora/question-pairs-dataset) dataset. It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity for the purpose of semantic caching.
|
| 45 |
|