Spaces:
Configuration error
Configuration error
Update cross_encoder_reranking_train.py
Browse files
cross_encoder_reranking_train.py
CHANGED
@@ -169,7 +169,7 @@ def get_detailed_instruct(task_description: str, query: str) -> str:
|
|
169 |
"""Create an instruction-formatted query"""
|
170 |
return f'Instruct: {task_description}\nQuery: {query}'
|
171 |
|
172 |
-
def cross_encoder_reranking(query_text, doc_texts, model, tokenizer, batch_size=
|
173 |
"""
|
174 |
Rerank document texts based on query text using cross-encoder model
|
175 |
|
|
|
169 |
"""Create an instruction-formatted query"""
|
170 |
return f'Instruct: {task_description}\nQuery: {query}'
|
171 |
|
172 |
+
def cross_encoder_reranking(query_text, doc_texts, model, tokenizer, batch_size=64, max_length=2048):
|
173 |
"""
|
174 |
Rerank document texts based on query text using cross-encoder model
|
175 |
|