bwang0911 commited on
Commit
2e892b3
1 Parent(s): 383a5e9

Update README.md

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