Ask a question to get started
Enter to sendā¢Shift+Enter new line
rerank( self, documents: Sequence[Union[str, Document, dict]], query:
query
str
The query to use for reranking.
documents
Sequence[Union[str, Document, dict]]
A sequence of documents to rerank.
top_n
unknown
Returns an ordered list of documents ordered by their relevance to the provided query.
The number of results to return. If None returns all results. Defaults to self.top_n.