Commit
•
4fec538
1
Parent(s):
752c69e
Update README.md (#17)
Browse files- Update README.md (baba4278755a8034e3b065d1908315ed157f3190)
- Update README.md (c9ad37182e0ffae8da3d4146bbd72acc8751594d)
- Update config_sentence_transformers.json (48617ef5da72e65004c2fbc977c2cd7ad83ddbf1)
Co-authored-by: Bo Wang <bwang0911@users.noreply.huggingface.co>
- README.md +2 -1
- config_sentence_transformers.json +4 -1
README.md
CHANGED
@@ -257,7 +257,8 @@ model = SentenceTransformer(
|
|
257 |
"jinaai/jina-embeddings-v3", trust_remote_code=True
|
258 |
)
|
259 |
|
260 |
-
|
|
|
261 |
```
|
262 |
|
263 |
|
|
|
257 |
"jinaai/jina-embeddings-v3", trust_remote_code=True
|
258 |
)
|
259 |
|
260 |
+
task_type='retrieval.query'
|
261 |
+
embeddings = model.encode(['What is the weather like in Berlin today?'], task_type=task_type, prompt_name=task_type)
|
262 |
```
|
263 |
|
264 |
|
config_sentence_transformers.json
CHANGED
@@ -6,7 +6,10 @@
|
|
6 |
},
|
7 |
"prompts":{
|
8 |
"retrieval.query":"Represent the query for retrieving evidence documents: ",
|
9 |
-
"retrieval.passage":"Represent the document for retrieval: "
|
|
|
|
|
|
|
10 |
},
|
11 |
"default_prompt_name":null,
|
12 |
"similarity_fn_name":"cosine"
|
|
|
6 |
},
|
7 |
"prompts":{
|
8 |
"retrieval.query":"Represent the query for retrieving evidence documents: ",
|
9 |
+
"retrieval.passage":"Represent the document for retrieval: ",
|
10 |
+
"separation": "",
|
11 |
+
"classification": "",
|
12 |
+
"text-matching": ""
|
13 |
},
|
14 |
"default_prompt_name":null,
|
15 |
"similarity_fn_name":"cosine"
|