Sentence Similarity
sentence-transformers
Safetensors
xlm-roberta
datadreamer
datadreamer-0.46.0
Synthetic
feature-extraction
text-embeddings-inference
Instructions to use fineinstructions/instruction_template_retrieval_embedding with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use fineinstructions/instruction_template_retrieval_embedding with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("fineinstructions/instruction_template_retrieval_embedding") 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] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -15,6 +15,8 @@ pipeline_tag: sentence-similarity
|
|
| 15 |
|
| 16 |
Given a document, this retrieval embedding model helps retrieve instruction templates from [FineTemplates](https://huggingface.co/datasets/fineinstructions/finetemplates) relevant to various chunks / sections of the document.
|
| 17 |
|
|
|
|
|
|
|
| 18 |
## Requirements
|
| 19 |
```
|
| 20 |
datasets
|
|
|
|
| 15 |
|
| 16 |
Given a document, this retrieval embedding model helps retrieve instruction templates from [FineTemplates](https://huggingface.co/datasets/fineinstructions/finetemplates) relevant to various chunks / sections of the document.
|
| 17 |
|
| 18 |
+
Note: This retrieval embedding is symmetric, so it can also be used to retrieve relevant documents to a [(`compatible_document_description`) of a instruction template](https://huggingface.co/datasets/fineinstructions/finetemplates).
|
| 19 |
+
|
| 20 |
## Requirements
|
| 21 |
```
|
| 22 |
datasets
|