@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KnowledgeBaseRetrieveAndGenerateConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Contains details about the resource being queried.
This data type is used in the following API operations:
Retrieve request – in the knowledgeBaseConfiguration
field
RetrieveAndGenerate request – in the knowledgeBaseConfiguration
field
Constructor and Description |
---|
KnowledgeBaseRetrieveAndGenerateConfiguration() |
Modifier and Type | Method and Description |
---|---|
KnowledgeBaseRetrieveAndGenerateConfiguration |
clone() |
boolean |
equals(Object obj) |
GenerationConfiguration |
getGenerationConfiguration()
Contains configurations for response generation based on the knowledge base query results.
|
String |
getKnowledgeBaseId()
The unique identifier of the knowledge base that is queried and the foundation model used for generation.
|
String |
getModelArn()
The ARN of the foundation model used to generate a response.
|
OrchestrationConfiguration |
getOrchestrationConfiguration()
Settings for how the model processes the prompt prior to retrieval and generation.
|
KnowledgeBaseRetrievalConfiguration |
getRetrievalConfiguration()
Contains configurations for how to retrieve and return the knowledge base query.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setGenerationConfiguration(GenerationConfiguration generationConfiguration)
Contains configurations for response generation based on the knowledge base query results.
|
void |
setKnowledgeBaseId(String knowledgeBaseId)
The unique identifier of the knowledge base that is queried and the foundation model used for generation.
|
void |
setModelArn(String modelArn)
The ARN of the foundation model used to generate a response.
|
void |
setOrchestrationConfiguration(OrchestrationConfiguration orchestrationConfiguration)
Settings for how the model processes the prompt prior to retrieval and generation.
|
void |
setRetrievalConfiguration(KnowledgeBaseRetrievalConfiguration retrievalConfiguration)
Contains configurations for how to retrieve and return the knowledge base query.
|
String |
toString()
Returns a string representation of this object.
|
KnowledgeBaseRetrieveAndGenerateConfiguration |
withGenerationConfiguration(GenerationConfiguration generationConfiguration)
Contains configurations for response generation based on the knowledge base query results.
|
KnowledgeBaseRetrieveAndGenerateConfiguration |
withKnowledgeBaseId(String knowledgeBaseId)
The unique identifier of the knowledge base that is queried and the foundation model used for generation.
|
KnowledgeBaseRetrieveAndGenerateConfiguration |
withModelArn(String modelArn)
The ARN of the foundation model used to generate a response.
|
KnowledgeBaseRetrieveAndGenerateConfiguration |
withOrchestrationConfiguration(OrchestrationConfiguration orchestrationConfiguration)
Settings for how the model processes the prompt prior to retrieval and generation.
|
KnowledgeBaseRetrieveAndGenerateConfiguration |
withRetrievalConfiguration(KnowledgeBaseRetrievalConfiguration retrievalConfiguration)
Contains configurations for how to retrieve and return the knowledge base query.
|
public KnowledgeBaseRetrieveAndGenerateConfiguration()
public void setGenerationConfiguration(GenerationConfiguration generationConfiguration)
Contains configurations for response generation based on the knowledge base query results.
generationConfiguration
- Contains configurations for response generation based on the knowledge base query results.public GenerationConfiguration getGenerationConfiguration()
Contains configurations for response generation based on the knowledge base query results.
public KnowledgeBaseRetrieveAndGenerateConfiguration withGenerationConfiguration(GenerationConfiguration generationConfiguration)
Contains configurations for response generation based on the knowledge base query results.
generationConfiguration
- Contains configurations for response generation based on the knowledge base query results.public void setKnowledgeBaseId(String knowledgeBaseId)
The unique identifier of the knowledge base that is queried and the foundation model used for generation.
knowledgeBaseId
- The unique identifier of the knowledge base that is queried and the foundation model used for generation.public String getKnowledgeBaseId()
The unique identifier of the knowledge base that is queried and the foundation model used for generation.
public KnowledgeBaseRetrieveAndGenerateConfiguration withKnowledgeBaseId(String knowledgeBaseId)
The unique identifier of the knowledge base that is queried and the foundation model used for generation.
knowledgeBaseId
- The unique identifier of the knowledge base that is queried and the foundation model used for generation.public void setModelArn(String modelArn)
The ARN of the foundation model used to generate a response.
modelArn
- The ARN of the foundation model used to generate a response.public String getModelArn()
The ARN of the foundation model used to generate a response.
public KnowledgeBaseRetrieveAndGenerateConfiguration withModelArn(String modelArn)
The ARN of the foundation model used to generate a response.
modelArn
- The ARN of the foundation model used to generate a response.public void setOrchestrationConfiguration(OrchestrationConfiguration orchestrationConfiguration)
Settings for how the model processes the prompt prior to retrieval and generation.
orchestrationConfiguration
- Settings for how the model processes the prompt prior to retrieval and generation.public OrchestrationConfiguration getOrchestrationConfiguration()
Settings for how the model processes the prompt prior to retrieval and generation.
public KnowledgeBaseRetrieveAndGenerateConfiguration withOrchestrationConfiguration(OrchestrationConfiguration orchestrationConfiguration)
Settings for how the model processes the prompt prior to retrieval and generation.
orchestrationConfiguration
- Settings for how the model processes the prompt prior to retrieval and generation.public void setRetrievalConfiguration(KnowledgeBaseRetrievalConfiguration retrievalConfiguration)
Contains configurations for how to retrieve and return the knowledge base query.
retrievalConfiguration
- Contains configurations for how to retrieve and return the knowledge base query.public KnowledgeBaseRetrievalConfiguration getRetrievalConfiguration()
Contains configurations for how to retrieve and return the knowledge base query.
public KnowledgeBaseRetrieveAndGenerateConfiguration withRetrievalConfiguration(KnowledgeBaseRetrievalConfiguration retrievalConfiguration)
Contains configurations for how to retrieve and return the knowledge base query.
retrievalConfiguration
- Contains configurations for how to retrieve and return the knowledge base query.public String toString()
toString
in class Object
Object.toString()
public KnowledgeBaseRetrieveAndGenerateConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.