Class: Aws::BedrockAgent::Types::KnowledgeBaseFlowNodeConfiguration
- Inherits:
-
Struct
- Object
- Struct
- Aws::BedrockAgent::Types::KnowledgeBaseFlowNodeConfiguration
- Defined in:
- gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb
Overview
Contains configurations for a knowledge base node in a flow. This node takes a query as the input and returns, as the output, the retrieved responses directly (as an array) or a response generated based on the retrieved responses. For more information, see Node types in a flow in the Amazon Bedrock User Guide.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#guardrail_configuration ⇒ Types::GuardrailConfiguration
Contains configurations for a guardrail to apply during query and response generation for the knowledge base in this configuration.
-
#inference_configuration ⇒ Types::PromptInferenceConfiguration
Contains inference configurations for the prompt.
-
#knowledge_base_id ⇒ String
The unique identifier of the knowledge base to query.
-
#model_id ⇒ String
The unique identifier of the model or [inference profile][1] to use to generate a response from the query results.
-
#number_of_results ⇒ Integer
The number of results to retrieve from the knowledge base.
-
#orchestration_configuration ⇒ Types::KnowledgeBaseOrchestrationConfiguration
The configuration for orchestrating the retrieval and generation process in the knowledge base node.
-
#prompt_template ⇒ Types::KnowledgeBasePromptTemplate
A custom prompt template to use with the knowledge base for generating responses.
-
#reranking_configuration ⇒ Types::VectorSearchRerankingConfiguration
The configuration for reranking the retrieved results from the knowledge base to improve relevance.
Instance Attribute Details
#guardrail_configuration ⇒ Types::GuardrailConfiguration
Contains configurations for a guardrail to apply during query and response generation for the knowledge base in this configuration.
6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 |
# File 'gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb', line 6495 class KnowledgeBaseFlowNodeConfiguration < Struct.new( :knowledge_base_id, :model_id, :guardrail_configuration, :number_of_results, :prompt_template, :inference_configuration, :reranking_configuration, :orchestration_configuration) SENSITIVE = [] include Aws::Structure end |
#inference_configuration ⇒ Types::PromptInferenceConfiguration
Contains inference configurations for the prompt.
6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 |
# File 'gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb', line 6495 class KnowledgeBaseFlowNodeConfiguration < Struct.new( :knowledge_base_id, :model_id, :guardrail_configuration, :number_of_results, :prompt_template, :inference_configuration, :reranking_configuration, :orchestration_configuration) SENSITIVE = [] include Aws::Structure end |
#knowledge_base_id ⇒ String
The unique identifier of the knowledge base to query.
6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 |
# File 'gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb', line 6495 class KnowledgeBaseFlowNodeConfiguration < Struct.new( :knowledge_base_id, :model_id, :guardrail_configuration, :number_of_results, :prompt_template, :inference_configuration, :reranking_configuration, :orchestration_configuration) SENSITIVE = [] include Aws::Structure end |
#model_id ⇒ String
The unique identifier of the model or inference profile to use to generate a response from the query results. Omit this field if you want to return the retrieved results as an array.
6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 |
# File 'gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb', line 6495 class KnowledgeBaseFlowNodeConfiguration < Struct.new( :knowledge_base_id, :model_id, :guardrail_configuration, :number_of_results, :prompt_template, :inference_configuration, :reranking_configuration, :orchestration_configuration) SENSITIVE = [] include Aws::Structure end |
#number_of_results ⇒ Integer
The number of results to retrieve from the knowledge base.
6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 |
# File 'gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb', line 6495 class KnowledgeBaseFlowNodeConfiguration < Struct.new( :knowledge_base_id, :model_id, :guardrail_configuration, :number_of_results, :prompt_template, :inference_configuration, :reranking_configuration, :orchestration_configuration) SENSITIVE = [] include Aws::Structure end |
#orchestration_configuration ⇒ Types::KnowledgeBaseOrchestrationConfiguration
The configuration for orchestrating the retrieval and generation process in the knowledge base node.
6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 |
# File 'gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb', line 6495 class KnowledgeBaseFlowNodeConfiguration < Struct.new( :knowledge_base_id, :model_id, :guardrail_configuration, :number_of_results, :prompt_template, :inference_configuration, :reranking_configuration, :orchestration_configuration) SENSITIVE = [] include Aws::Structure end |
#prompt_template ⇒ Types::KnowledgeBasePromptTemplate
A custom prompt template to use with the knowledge base for generating responses.
6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 |
# File 'gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb', line 6495 class KnowledgeBaseFlowNodeConfiguration < Struct.new( :knowledge_base_id, :model_id, :guardrail_configuration, :number_of_results, :prompt_template, :inference_configuration, :reranking_configuration, :orchestration_configuration) SENSITIVE = [] include Aws::Structure end |
#reranking_configuration ⇒ Types::VectorSearchRerankingConfiguration
The configuration for reranking the retrieved results from the knowledge base to improve relevance.
6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 |
# File 'gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb', line 6495 class KnowledgeBaseFlowNodeConfiguration < Struct.new( :knowledge_base_id, :model_id, :guardrail_configuration, :number_of_results, :prompt_template, :inference_configuration, :reranking_configuration, :orchestration_configuration) SENSITIVE = [] include Aws::Structure end |