Skip to content

RerankRequest

Source code in docs_src/capo_bedrock_agent_runtime/types/rerank_request.py
class RerankRequest(TypedDict, closed=True):
    queries: "capo_bedrock_agent_runtime.types.rerank_queries_list.RerankQueriesList"
    """<p>An array of objects, each of which contains information about a query to submit to the reranker model.</p>"""
    sources: "capo_bedrock_agent_runtime.types.rerank_sources_list.RerankSourcesList"
    """<p>An array of objects, each of which contains information about the sources to rerank.</p>"""
    reranking_configuration: "capo_bedrock_agent_runtime.types.reranking_configuration.RerankingConfiguration"
    """<p>Contains configurations for reranking.</p>"""
    next_token: NotRequired["capo_bedrock_agent_runtime.types.next_token.NextToken"]
    """<p>If the total number of results was greater than could fit in a response, a token is returned in the <code>nextToken</code> field. You can enter that token in this field to return the next batch of results.</p>"""

next_token instance-attribute

next_token: NotRequired[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.

queries instance-attribute

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

reranking_configuration instance-attribute

reranking_configuration: RerankingConfiguration

Contains configurations for reranking.

sources instance-attribute

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