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 instruction_template_retriever.py
Browse files
instruction_template_retriever.py
CHANGED
|
@@ -168,7 +168,7 @@ def unuse_gaussian_coverage_pooling(m):
|
|
| 168 |
|
| 169 |
class InstructionTemplateRetriever:
|
| 170 |
FINETEMPLATES_REVISION = "831ab22c90f9da011bd972585afdf609f40fa54b"
|
| 171 |
-
RETRIEVAL_EMBEDDING_NAME = "fineinstructions/
|
| 172 |
RETRIEVAL_EMBEDDING_REVISION = "db4efbde126216250ffa5a356663fc7da3bf7856"
|
| 173 |
|
| 174 |
def __init__(
|
|
|
|
| 168 |
|
| 169 |
class InstructionTemplateRetriever:
|
| 170 |
FINETEMPLATES_REVISION = "831ab22c90f9da011bd972585afdf609f40fa54b"
|
| 171 |
+
RETRIEVAL_EMBEDDING_NAME = "fineinstructions/instruction_template_retrieval_embedding"
|
| 172 |
RETRIEVAL_EMBEDDING_REVISION = "db4efbde126216250ffa5a356663fc7da3bf7856"
|
| 173 |
|
| 174 |
def __init__(
|