Class RerankResult
java.lang.Object
software.amazon.awssdk.services.bedrockagentruntime.model.RerankResult
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RerankResult.Builder,RerankResult>
@Generated("software.amazon.awssdk:codegen")
public final class RerankResult
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<RerankResult.Builder,RerankResult>
Contains information about a document that was reranked.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic RerankResult.Builderbuilder()final RerankDocumentdocument()Contains information about the document.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Integerindex()The original index of the document from the input sources array.final FloatThe relevance score of the document.static Class<? extends RerankResult.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
document
Contains information about the document.
- Returns:
- Contains information about the document.
-
index
The original index of the document from the input sources array.
- Returns:
- The original index of the document from the input sources array.
-
relevanceScore
The relevance score of the document.
- Returns:
- The relevance score of the document.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<RerankResult.Builder,RerankResult>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-