Update README.md
Browse files
README.md
CHANGED
@@ -100,7 +100,13 @@ reranker = pipeline(
|
|
100 |
)
|
101 |
|
102 |
similarity = reranker(
|
103 |
-
[
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
)
|
105 |
context_reranked = sorted(
|
106 |
filter(
|
|
|
100 |
)
|
101 |
|
102 |
similarity = reranker(
|
103 |
+
[
|
104 |
+
dict(
|
105 |
+
text=ii, # the model was trained with context in text argument
|
106 |
+
text_pair=query # and query in text_pair argument.
|
107 |
+
)
|
108 |
+
for ii in context_list
|
109 |
+
]
|
110 |
)
|
111 |
context_reranked = sorted(
|
112 |
filter(
|