bwang0911 commited on
Commit
4094a09
1 Parent(s): 5500144

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +15 -6
README.md CHANGED
@@ -65,15 +65,24 @@ We compared the model against `all-minilm-l6-v2`/`all-mpnet-base-v2` from sbert
65
 
66
  For more tasks and metrics, please checkout [MTEB](https://huggingface.co/spaces/mteb/leaderboard) benchmark.
67
 
68
- ## Usage [WIP]
69
 
70
  ```python
71
- !pip install finetuner[text]
72
  import finetuner
73
- model = finetuner.get_model('jinaai/jina-embedding-l-en-v1')
74
- embeddings = model.encode(['sentence 1', 'sentence 2'])
 
 
 
 
 
75
  ```
76
 
77
- ## Fine-tuning [WIP]
 
 
 
 
78
 
79
- Please consider [Finetuner](https://github.com/jina-ai/finetuner).
 
65
 
66
  For more tasks and metrics, please checkout [MTEB](https://huggingface.co/spaces/mteb/leaderboard) benchmark.
67
 
68
+ ## Usage
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
83
+
84
+ Please consider [Finetuner](https://github.com/jina-ai/finetuner).
85
+
86
+ ## Contact
87
 
88
+ Join our [Discord community](https://discord.jina.ai) and chat with other community members about ideas.