Interface RerankResult.Builder

    • Method Detail

      • document

        RerankResult.Builder document​(RerankDocument document)

        Contains information about the document.

        Parameters:
        document - Contains information about the document.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • index

        RerankResult.Builder index​(Integer index)

        The ranking of the document. The lower a number, the higher the document is ranked.

        Parameters:
        index - The ranking of the document. The lower a number, the higher the document is ranked.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • relevanceScore

        RerankResult.Builder relevanceScore​(Float relevanceScore)

        The relevance score of the document.

        Parameters:
        relevanceScore - The relevance score of the document.
        Returns:
        Returns a reference to this object so that method calls can be chained together.