Update README.md
Browse files
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
|
72 |
import finetuner
|
73 |
-
|
74 |
-
|
|
|
|
|
|
|
|
|
|
|
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]
|