Interface RerankingMetadataSelectiveModeConfiguration.Builder

  • Method Details

    • fieldsToInclude

      A list of metadata field names to explicitly include in the reranking process. Only these fields will be considered when reordering search results. This parameter cannot be used together with fieldsToExclude.

      Parameters:
      fieldsToInclude - A list of metadata field names to explicitly include in the reranking process. Only these fields will be considered when reordering search results. This parameter cannot be used together with fieldsToExclude.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fieldsToInclude

      A list of metadata field names to explicitly include in the reranking process. Only these fields will be considered when reordering search results. This parameter cannot be used together with fieldsToExclude.

      Parameters:
      fieldsToInclude - A list of metadata field names to explicitly include in the reranking process. Only these fields will be considered when reordering search results. This parameter cannot be used together with fieldsToExclude.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fieldsToInclude

      A list of metadata field names to explicitly include in the reranking process. Only these fields will be considered when reordering search results. This parameter cannot be used together with fieldsToExclude.

      This is a convenience method that creates an instance of the FieldForReranking.Builder avoiding the need to create one manually via FieldForReranking.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to fieldsToInclude(List<FieldForReranking>).

      Parameters:
      fieldsToInclude - a consumer that will call methods on FieldForReranking.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • fieldsToExclude

      A list of metadata field names to explicitly exclude from the reranking process. All metadata fields except these will be considered when reordering search results. This parameter cannot be used together with fieldsToInclude.

      Parameters:
      fieldsToExclude - A list of metadata field names to explicitly exclude from the reranking process. All metadata fields except these will be considered when reordering search results. This parameter cannot be used together with fieldsToInclude.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fieldsToExclude

      A list of metadata field names to explicitly exclude from the reranking process. All metadata fields except these will be considered when reordering search results. This parameter cannot be used together with fieldsToInclude.

      Parameters:
      fieldsToExclude - A list of metadata field names to explicitly exclude from the reranking process. All metadata fields except these will be considered when reordering search results. This parameter cannot be used together with fieldsToInclude.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fieldsToExclude

      A list of metadata field names to explicitly exclude from the reranking process. All metadata fields except these will be considered when reordering search results. This parameter cannot be used together with fieldsToInclude.

      This is a convenience method that creates an instance of the FieldForReranking.Builder avoiding the need to create one manually via FieldForReranking.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to fieldsToExclude(List<FieldForReranking>).

      Parameters:
      fieldsToExclude - a consumer that will call methods on FieldForReranking.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: