Update README.md
Browse files
README.md
CHANGED
@@ -162,6 +162,8 @@ pip install torch transformers einops git+https://github.com/nomic-ai/megablocks
|
|
162 |
For queries/questions, please use `search_query: ` and `search_document: ` for the corresponding document
|
163 |
|
164 |
**Transformers**
|
|
|
|
|
165 |
If using Transformers, **make sure to prepend the task instruction prefix**
|
166 |
|
167 |
```python
|
@@ -188,7 +190,9 @@ embeddings = F.normalize(embeddings, p=2, dim=1)
|
|
188 |
```
|
189 |
|
190 |
**SentenceTransformers**
|
|
|
191 |
With SentenceTransformers, you can specify the prompt_name (query or passage)
|
|
|
192 |
```python
|
193 |
from sentence_transformers import SentenceTransformer
|
194 |
|
|
|
162 |
For queries/questions, please use `search_query: ` and `search_document: ` for the corresponding document
|
163 |
|
164 |
**Transformers**
|
165 |
+
|
166 |
+
|
167 |
If using Transformers, **make sure to prepend the task instruction prefix**
|
168 |
|
169 |
```python
|
|
|
190 |
```
|
191 |
|
192 |
**SentenceTransformers**
|
193 |
+
|
194 |
With SentenceTransformers, you can specify the prompt_name (query or passage)
|
195 |
+
|
196 |
```python
|
197 |
from sentence_transformers import SentenceTransformer
|
198 |
|