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 original index of the document from the input sources array.

        Parameters:
        index - The original index of the document from the input sources array.
        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.