Spaces:
Sleeping
Sleeping
fix cross-encoder launch
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def bot(history, api_kind, chunk_table, embedding_model, llm_model, cross_encode
|
|
49 |
#documents = retrieve(query, TOP_K)
|
50 |
documents = retrieve(query, top_k_param, chunk_table, embedding_model)
|
51 |
if cross_encoder != "None" and len(documents) > 1:
|
52 |
-
documents = rerank_documents(
|
53 |
#"cross-encoder/ms-marco-MiniLM-L-6-v2"
|
54 |
|
55 |
|
|
|
49 |
#documents = retrieve(query, TOP_K)
|
50 |
documents = retrieve(query, top_k_param, chunk_table, embedding_model)
|
51 |
if cross_encoder != "None" and len(documents) > 1:
|
52 |
+
documents = rerank_documents(cross_encoder, documents, query, top_k_rerank=rerank_topk)
|
53 |
#"cross-encoder/ms-marco-MiniLM-L-6-v2"
|
54 |
|
55 |
|