Skip to content

RerankResult

Source code in docs_src/capo_bedrock_agent_runtime/types/rerank_result.py
class RerankResult(TypedDict, closed=True):
    index: "int"
    """<p>The original index of the document from the input sources array.</p>"""
    relevance_score: "float"
    """<p>The relevance score of the document.</p>"""
    document: NotRequired[
        "capo_bedrock_agent_runtime.types.rerank_document.RerankDocument"
    ]
    """<p>Contains information about the document.</p>"""

document instance-attribute

document: NotRequired[RerankDocument]

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.