FusionRanker.predict:v0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import weave
@weave.op()
def predict(self, *docs):
"""
Predicts the relevance of documents by reranking them using the fusion ranking approach.
Args:
docs (List[List[Dict[Any, Any]]]): A variable number of lists of documents to be reranked.
Returns:
List[Dict[Any, Any]]: A list of reranked documents with fusion scores.
"""
return self.rerank(*docs)