Update app.py
Browse files
app.py
CHANGED
|
@@ -52,7 +52,7 @@ def test_rag_reranking(query, ranker):
|
|
| 52 |
|
| 53 |
# ✅ Corregido: pasar solo lista de strings
|
| 54 |
context_strings = [str(c) for c in context]
|
| 55 |
-
reranked = ranker.rank(query=query,
|
| 56 |
print(f"🏅 Resultado del reranker: {reranked}")
|
| 57 |
|
| 58 |
# ✅ Seguridad en el acceso al mejor contexto
|
|
|
|
| 52 |
|
| 53 |
# ✅ Corregido: pasar solo lista de strings
|
| 54 |
context_strings = [str(c) for c in context]
|
| 55 |
+
reranked = ranker.rank(query=query, docs=context_strings, top_k=1)
|
| 56 |
print(f"🏅 Resultado del reranker: {reranked}")
|
| 57 |
|
| 58 |
# ✅ Seguridad en el acceso al mejor contexto
|