radu.mutilica
commited on
Commit
·
a656c68
1
Parent(s):
d5609b4
readme example
Browse files
README.md
CHANGED
@@ -2,6 +2,22 @@
|
|
2 |
license: apache-2.0
|
3 |
---
|
4 |
# fork of Cross-Encoder for MS Marco
|
5 |
-
https://huggingface.co/cross-encoder/ms-marco-MiniLM-L-12-v2
|
6 |
|
7 |
-
Added a custom handler to do reranking
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
license: apache-2.0
|
3 |
---
|
4 |
# fork of Cross-Encoder for MS Marco
|
5 |
+
Original weights: https://huggingface.co/cross-encoder/ms-marco-MiniLM-L-12-v2
|
6 |
|
7 |
+
Added a custom handler to do reranking:
|
8 |
+
https://www.sbert.net/docs/cross_encoder/usage/usage.html
|
9 |
+
|
10 |
+
Example json usage:
|
11 |
+
```json
|
12 |
+
{
|
13 |
+
"inputs": {
|
14 |
+
"query": "I like Apples",
|
15 |
+
"documents": [
|
16 |
+
"I add red ones to smoothies",
|
17 |
+
"Red ones are larger than green ones",
|
18 |
+
"Asia is a continent"
|
19 |
+
]
|
20 |
+
},
|
21 |
+
"parameters": {} // not used yet
|
22 |
+
}
|
23 |
+
```
|