Interface RerankRequest.Builder

    • Method Detail

      • nextToken

        RerankRequest.Builder nextToken​(String nextToken)

        If the total number of results was greater than could fit in a response, a token is returned in the nextToken field. You can enter that token in this field to return the next batch of results.

        Parameters:
        nextToken - If the total number of results was greater than could fit in a response, a token is returned in the nextToken field. You can enter that token in this field to return the next batch of results.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • queries

        RerankRequest.Builder queries​(Collection<RerankQuery> queries)

        An array of objects, each of which contains information about a query to submit to the reranker model.

        Parameters:
        queries - An array of objects, each of which contains information about a query to submit to the reranker model.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • queries

        RerankRequest.Builder queries​(RerankQuery... queries)

        An array of objects, each of which contains information about a query to submit to the reranker model.

        Parameters:
        queries - An array of objects, each of which contains information about a query to submit to the reranker model.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • rerankingConfiguration

        RerankRequest.Builder rerankingConfiguration​(RerankingConfiguration rerankingConfiguration)

        Contains configurations for reranking.

        Parameters:
        rerankingConfiguration - Contains configurations for reranking.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sources

        RerankRequest.Builder sources​(Collection<RerankSource> sources)

        An array of objects, each of which contains information about the sources to rerank.

        Parameters:
        sources - An array of objects, each of which contains information about the sources to rerank.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sources

        RerankRequest.Builder sources​(RerankSource... sources)

        An array of objects, each of which contains information about the sources to rerank.

        Parameters:
        sources - An array of objects, each of which contains information about the sources to rerank.
        Returns:
        Returns a reference to this object so that method calls can be chained together.