joortif commited on
Commit
5dd204e
·
verified ·
1 Parent(s): 6b36569

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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
- 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
 
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