jupyterjazz commited on
Commit
8bf1330
1 Parent(s): 345e984

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +10 -10
README.md CHANGED
@@ -254,7 +254,12 @@ The latest version (#todo: specify version) of SentenceTransformers also support
254
  from sentence_transformers import SentenceTransformer
255
 
256
  model = SentenceTransformer(
257
- "jinaai/jina-embeddings-v3", trust_remote_code=True
 
 
 
 
 
258
  )
259
 
260
  embeddings = model.encode(['How is the weather today?'], task_type='retrieval.query')
@@ -307,15 +312,10 @@ embeddings = model.encode(['How is the weather today?'], task_type='retrieval.qu
307
 
308
  #### Matryoshka Embeddings
309
 
310
- | MRL Dimension | Retrieval | STS |
311
- |:-------------:|:---------:|:----:|
312
- | 32 | 52.54 | 76.35|
313
- | 64 | 58.54 | 77.03|
314
- | 128 | 61.64 | 77.43|
315
- | 256 | 62.72 | 77.56|
316
- | 512 | 63.16 | 77.59|
317
- | 768 | 63.30 | 77.59|
318
- | 1024 | 63.35 | 77.58|
319
 
320
 
321
  ## Contact
 
254
  from sentence_transformers import SentenceTransformer
255
 
256
  model = SentenceTransformer(
257
+ "jinaai/jina-embeddings-v3",
258
+ prompts={
259
+ "retrieval.query": "Represent the query for retrieving evidence documents: ",
260
+ "retrieval.passage": "Represent the document for retrieval: ",
261
+ },
262
+ trust_remote_code=True
263
  )
264
 
265
  embeddings = model.encode(['How is the weather today?'], task_type='retrieval.query')
 
312
 
313
  #### Matryoshka Embeddings
314
 
315
+ | Task | 32 | 64 | 128 | 256 | 512 | 768 | 1024 |
316
+ |:-------------:|:----:|:----:|:----:|:----:|:----:|:----:|:----:|
317
+ | Retrieval | 52.54| 58.54| 61.64| 62.72| 63.16| 63.30| 63.35|
318
+ | STS | 76.35| 77.03| 77.43| 77.56| 77.59| 77.59| 77.58|
 
 
 
 
 
319
 
320
 
321
  ## Contact