Access results from RankedResults
mainThe .rank() method returns a RankedResults object. This object contains a list of Result objects.
Key methods and properties:
top_k(k): Returns the topkResultobjects.results: The full list ofResultobjects.query: The original query used.
Each Result object contains:
document: ADocumentobject containing thetext,doc_id, andmetadata.score: The reranking score.rank: The integer rank.
You can access document properties directly from a Result object (e.g., result.text or result.metadata).