Update README.md
Browse files
README.md
CHANGED
@@ -2692,7 +2692,7 @@ embedding2 = model.encode(inputs2)
|
|
2692 |
similarity = embedding1 @ embedding2.T
|
2693 |
print(similarity)
|
2694 |
```
|
2695 |
-
|
2696 |
By using `encode_queries()`, you can use instruction to encode queries which is prefixed to each query.
|
2697 |
The instruction to use for both v1 and v2 models is `"query: "`.
|
2698 |
|
|
|
2692 |
similarity = embedding1 @ embedding2.T
|
2693 |
print(similarity)
|
2694 |
```
|
2695 |
+
We apply the instruction to encode short queries for retrieval tasks.
|
2696 |
By using `encode_queries()`, you can use instruction to encode queries which is prefixed to each query.
|
2697 |
The instruction to use for both v1 and v2 models is `"query: "`.
|
2698 |
|