RerankDocument¶
Structure Class¶
RerankDocument
dataclass
¶
Contains information about a document to rerank. Choose the type to
define and include the field that corresponds to the type.
Attributes¶
json_document
class-attribute
instance-attribute
¶
json_document: Document | None = None
Contains a JSON document to rerank.
text_document
class-attribute
instance-attribute
¶
text_document: RerankTextDocument | None = field(repr=False, default=None)
Contains information about a text document to rerank.