bwang0911 commited on
Commit
aa26781
1 Parent(s): 7dcfa95

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -3
README.md CHANGED
@@ -68,10 +68,15 @@ For more tasks and metrics, please checkout [MTEB](https://huggingface.co/spaces
68
  ## Usage [WIP]
69
 
70
  ```python
71
- !pip install finetuner[text]
72
  import finetuner
73
- model = finetuner.get_model('jinaai/jina-embedding-s-en-v1')
74
- embeddings = model.encode(['sentence 1', 'sentence 2'])
 
 
 
 
 
75
  ```
76
 
77
  ## Fine-tuning [WIP]
 
68
  ## Usage [WIP]
69
 
70
  ```python
71
+ !pip install finetuner
72
  import finetuner
73
+
74
+ model = finetuner.build_model('jinaai/jina-embedding-l-en-v1')
75
+ embeddings = finetuner.encode(
76
+ model=model,
77
+ data=['how is the weather today', 'What is the current weather like today?']
78
+ )
79
+ print(finetuner.cos_sim(embeddings[0], embeddings[1]))
80
  ```
81
 
82
  ## Fine-tuning [WIP]