Update README.md
Browse files
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
|
| 70 |
|
| 71 |
```python
|
| 72 |
-
!pip install finetuner
|
| 73 |
import finetuner
|
| 74 |
-
|
| 75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
```
|
| 77 |
|
| 78 |
-
## Fine-tuning
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
|
| 80 |
-
|
|
|
|
| 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.
|