juliuslipp
commited on
Commit
•
3e71073
1
Parent(s):
1152fd6
Update README.md
Browse files
README.md
CHANGED
@@ -57,7 +57,7 @@ results = model.rank(query, documents, return_documents=True, top_k=3)
|
|
57 |
```
|
58 |
|
59 |
<details>
|
60 |
-
<summary
|
61 |
|
62 |
Currently, the best way to use our models is with the most recent version of sentence-transformers.
|
63 |
|
@@ -68,7 +68,7 @@ Let's say you have a query, and you want to rerank a set of documents. In JavaSc
|
|
68 |
```javascript
|
69 |
import { AutoTokenizer, AutoModelForSequenceClassification } from '@xenova/transformers';
|
70 |
|
71 |
-
const model_id = 'mixedbread-ai/mxbai-rerank-
|
72 |
const model = await AutoModelForSequenceClassification.from_pretrained(model_id);
|
73 |
const tokenizer = await AutoTokenizer.from_pretrained(model_id);
|
74 |
|
|
|
57 |
```
|
58 |
|
59 |
<details>
|
60 |
+
<summary>Using with JavaScript</summary>
|
61 |
|
62 |
Currently, the best way to use our models is with the most recent version of sentence-transformers.
|
63 |
|
|
|
68 |
```javascript
|
69 |
import { AutoTokenizer, AutoModelForSequenceClassification } from '@xenova/transformers';
|
70 |
|
71 |
+
const model_id = 'mixedbread-ai/mxbai-rerank-base-v1';
|
72 |
const model = await AutoModelForSequenceClassification.from_pretrained(model_id);
|
73 |
const tokenizer = await AutoTokenizer.from_pretrained(model_id);
|
74 |
|