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