Class RAGConfig
- java.lang.Object
-
- software.amazon.awssdk.services.bedrock.model.RAGConfig
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RAGConfig.Builder,RAGConfig>
@Generated("software.amazon.awssdk:codegen") public final class RAGConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RAGConfig.Builder,RAGConfig>
Contains configuration details for retrieval of information and response generation.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRAGConfig.Builderstatic classRAGConfig.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RAGConfig.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static RAGConfigfromKnowledgeBaseConfig(Consumer<KnowledgeBaseConfig.Builder> knowledgeBaseConfig)Create an instance of this class withknowledgeBaseConfig()initialized to the given value.static RAGConfigfromKnowledgeBaseConfig(KnowledgeBaseConfig knowledgeBaseConfig)Create an instance of this class withknowledgeBaseConfig()initialized to the given value.static RAGConfigfromPrecomputedRagSourceConfig(Consumer<EvaluationPrecomputedRagSourceConfig.Builder> precomputedRagSourceConfig)Create an instance of this class withprecomputedRagSourceConfig()initialized to the given value.static RAGConfigfromPrecomputedRagSourceConfig(EvaluationPrecomputedRagSourceConfig precomputedRagSourceConfig)Create an instance of this class withprecomputedRagSourceConfig()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()KnowledgeBaseConfigknowledgeBaseConfig()Contains configuration details for knowledge base retrieval and response generation.EvaluationPrecomputedRagSourceConfigprecomputedRagSourceConfig()Contains configuration details about the RAG source used to generate inference response data for a Knowledge Base evaluation job.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends RAGConfig.Builder>serializableBuilderClass()RAGConfig.BuildertoBuilder()StringtoString()Returns a string representation of this object.RAGConfig.Typetype()Retrieve an enum value representing which member of this object is populated.-
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
-
knowledgeBaseConfig
public final KnowledgeBaseConfig knowledgeBaseConfig()
Contains configuration details for knowledge base retrieval and response generation.
- Returns:
- Contains configuration details for knowledge base retrieval and response generation.
-
precomputedRagSourceConfig
public final EvaluationPrecomputedRagSourceConfig precomputedRagSourceConfig()
Contains configuration details about the RAG source used to generate inference response data for a Knowledge Base evaluation job.
- Returns:
- Contains configuration details about the RAG source used to generate inference response data for a Knowledge Base evaluation job.
-
toBuilder
public RAGConfig.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RAGConfig.Builder,RAGConfig>
-
builder
public static RAGConfig.Builder builder()
-
serializableBuilderClass
public static Class<? extends RAGConfig.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.
-
fromKnowledgeBaseConfig
public static RAGConfig fromKnowledgeBaseConfig(KnowledgeBaseConfig knowledgeBaseConfig)
Create an instance of this class withknowledgeBaseConfig()initialized to the given value.Contains configuration details for knowledge base retrieval and response generation.
- Parameters:
knowledgeBaseConfig- Contains configuration details for knowledge base retrieval and response generation.
-
fromKnowledgeBaseConfig
public static RAGConfig fromKnowledgeBaseConfig(Consumer<KnowledgeBaseConfig.Builder> knowledgeBaseConfig)
Create an instance of this class withknowledgeBaseConfig()initialized to the given value.Contains configuration details for knowledge base retrieval and response generation.
- Parameters:
knowledgeBaseConfig- Contains configuration details for knowledge base retrieval and response generation.
-
fromPrecomputedRagSourceConfig
public static RAGConfig fromPrecomputedRagSourceConfig(EvaluationPrecomputedRagSourceConfig precomputedRagSourceConfig)
Create an instance of this class withprecomputedRagSourceConfig()initialized to the given value.Contains configuration details about the RAG source used to generate inference response data for a Knowledge Base evaluation job.
- Parameters:
precomputedRagSourceConfig- Contains configuration details about the RAG source used to generate inference response data for a Knowledge Base evaluation job.
-
fromPrecomputedRagSourceConfig
public static RAGConfig fromPrecomputedRagSourceConfig(Consumer<EvaluationPrecomputedRagSourceConfig.Builder> precomputedRagSourceConfig)
Create an instance of this class withprecomputedRagSourceConfig()initialized to the given value.Contains configuration details about the RAG source used to generate inference response data for a Knowledge Base evaluation job.
- Parameters:
precomputedRagSourceConfig- Contains configuration details about the RAG source used to generate inference response data for a Knowledge Base evaluation job.
-
type
public RAGConfig.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beRAGConfig.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beRAGConfig.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-