Class KnowledgeBaseRetrievalResult
- java.lang.Object
-
- software.amazon.awssdk.services.bedrockagentruntime.model.KnowledgeBaseRetrievalResult
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<KnowledgeBaseRetrievalResult.Builder,KnowledgeBaseRetrievalResult>
@Generated("software.amazon.awssdk:codegen") public final class KnowledgeBaseRetrievalResult extends Object implements SdkPojo, Serializable, ToCopyableBuilder<KnowledgeBaseRetrievalResult.Builder,KnowledgeBaseRetrievalResult>
Details about a result from querying the knowledge base.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceKnowledgeBaseRetrievalResult.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KnowledgeBaseRetrievalResult.Builderbuilder()RetrievalResultContentcontent()Contains a chunk of text from a data source in the knowledge base.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()RetrievalResultLocationlocation()Contains information about the location of the data source.Doublescore()The level of relevance of the result to the query.List<SdkField<?>>sdkFields()static Class<? extends KnowledgeBaseRetrievalResult.Builder>serializableBuilderClass()KnowledgeBaseRetrievalResult.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
content
public final RetrievalResultContent content()
Contains a chunk of text from a data source in the knowledge base.
- Returns:
- Contains a chunk of text from a data source in the knowledge base.
-
location
public final RetrievalResultLocation location()
Contains information about the location of the data source.
- Returns:
- Contains information about the location of the data source.
-
score
public final Double score()
The level of relevance of the result to the query.
- Returns:
- The level of relevance of the result to the query.
-
toBuilder
public KnowledgeBaseRetrievalResult.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<KnowledgeBaseRetrievalResult.Builder,KnowledgeBaseRetrievalResult>
-
builder
public static KnowledgeBaseRetrievalResult.Builder builder()
-
serializableBuilderClass
public static Class<? extends KnowledgeBaseRetrievalResult.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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.
-
-