Skip to content

RerankDocument

Structure Class

RerankDocument dataclass

Bases: _SerdeShape

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 = ...

Contains a JSON document to rerank.

text_document class-attribute instance-attribute
text_document: RerankTextDocument | None = ...

Contains information about a text document to rerank.

type instance-attribute
type: str

The type of document to rerank.