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 Summary
Modifier and TypeMethodDescriptionitem(Map<String, AttributeValue> item) A map of attribute names toAttributeValueobjects, representing the projected attributes of the item returned by the vector search.The similarity score for this item relative to the search vector.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
item
A map of attribute names to
AttributeValueobjects, representing the projected attributes of the item returned by the vector search.- Parameters:
item- A map of attribute names toAttributeValueobjects, 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.
-