Interface SearchResultItem.Builder

All Superinterfaces:
Buildable, CopyableBuilder<SearchResultItem.Builder,SearchResultItem>, SdkBuilder<SearchResultItem.Builder,SearchResultItem>, SdkPojo
Enclosing class:
SearchResultItem

@Mutable @NotThreadSafe public static interface SearchResultItem.Builder extends SdkPojo, CopyableBuilder<SearchResultItem.Builder,SearchResultItem>
  • Method Details

    • item

      A map of attribute names to AttributeValue objects, representing the projected attributes of the item returned by the vector search.

      Parameters:
      item - A map of attribute names to AttributeValue objects, representing the projected attributes of the item returned by the vector search.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • score

      The similarity score for this item relative to the search vector. The interpretation depends on the distance function configured for the vector index.

      Parameters:
      score - The similarity score for this item relative to the search vector. The interpretation depends on the distance function configured for the vector index.
      Returns:
      Returns a reference to this object so that method calls can be chained together.