Skip to content

/AWS1/CL_BDKVECTORSRCHBDRRER00

Configuration for using Amazon Bedrock foundation models to rerank Knowledge Base vector search results. This enables more sophisticated relevance ranking using large language models.

CONSTRUCTOR

IMPORTING

Required arguments:

io_modelconfiguration TYPE REF TO /AWS1/CL_BDKVECTORSRCHBDRRER01 /AWS1/CL_BDKVECTORSRCHBDRRER01

Configuration for the Amazon Bedrock foundation model used for reranking. This includes the model ARN and any additional request fields required by the model.

Optional arguments:

iv_numberofrerankedresults TYPE /AWS1/BDKINTEGER /AWS1/BDKINTEGER

The maximum number of results to rerank. This limits how many of the initial vector search results will be processed by the reranking model. A smaller number improves performance but may exclude potentially relevant results.

io_metadataconfiguration TYPE REF TO /AWS1/CL_BDKMETCONFFORRERANK /AWS1/CL_BDKMETCONFFORRERANK

Configuration for how document metadata should be used during the reranking process. This determines which metadata fields are included when reordering search results.


Queryable Attributes

modelConfiguration

Configuration for the Amazon Bedrock foundation model used for reranking. This includes the model ARN and any additional request fields required by the model.

Accessible with the following methods

Method Description
GET_MODELCONFIGURATION() Getter for MODELCONFIGURATION

numberOfRerankedResults

The maximum number of results to rerank. This limits how many of the initial vector search results will be processed by the reranking model. A smaller number improves performance but may exclude potentially relevant results.

Accessible with the following methods

Method Description
GET_NUMBEROFRERANKEDRESULTS() Getter for NUMBEROFRERANKEDRESULTS, with configurable defaul
ASK_NUMBEROFRERANKEDRESULTS() Getter for NUMBEROFRERANKEDRESULTS w/ exceptions if field ha
HAS_NUMBEROFRERANKEDRESULTS() Determine if NUMBEROFRERANKEDRESULTS has a value

metadataConfiguration

Configuration for how document metadata should be used during the reranking process. This determines which metadata fields are included when reordering search results.

Accessible with the following methods

Method Description
GET_METADATACONFIGURATION() Getter for METADATACONFIGURATION