Skip to content

RerankResult

Structure Class

RerankResult dataclass

Bases: _SerdeShape

Contains information about a document that was reranked.

Attributes

document class-attribute instance-attribute
document: RerankDocument | None = ...

Contains information about the document.

index instance-attribute
index: int

The original index of the document from the input sources array.

relevance_score instance-attribute
relevance_score: float

The relevance score of the document.