Class VectorSearchBedrockRerankingConfiguration

    • Method Detail

      • modelConfiguration

        public final VectorSearchBedrockRerankingModelConfiguration 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.

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

        public final Integer 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.

        Returns:
        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.
      • metadataConfiguration

        public final MetadataConfigurationForReranking metadataConfiguration()

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

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

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)