Update functions.py
Browse files- functions.py +1 -1
functions.py
CHANGED
@@ -83,7 +83,7 @@ def embed_text(query,corpus,embedding_model):
|
|
83 |
|
84 |
# ##### Re-Ranking #####
|
85 |
# Now, score all retrieved passages with the cross_encoder
|
86 |
-
cross_inp = [[search_input,
|
87 |
|
88 |
if embedding_model == 'hkunlp/instructor-base':
|
89 |
result = []
|
|
|
83 |
|
84 |
# ##### Re-Ranking #####
|
85 |
# Now, score all retrieved passages with the cross_encoder
|
86 |
+
cross_inp = [[search_input, corpus[hit['corpus_id']]] for hit in hits]
|
87 |
|
88 |
if embedding_model == 'hkunlp/instructor-base':
|
89 |
result = []
|