Struct aws_sdk_lexmodelsv2::types::QnAKendraConfiguration
source · #[non_exhaustive]pub struct QnAKendraConfiguration {
pub kendra_index: String,
pub query_filter_string_enabled: bool,
pub query_filter_string: Option<String>,
pub exact_response: bool,
}Expand description
Contains details about the configuration of the Amazon Kendra index used for the AMAZON.QnAIntent.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kendra_index: StringThe ARN of the Amazon Kendra index to use.
query_filter_string_enabled: boolSpecifies whether to enable an Amazon Kendra filter string or not.
query_filter_string: Option<String>Contains the Amazon Kendra filter string to use if enabled. For more information on the Amazon Kendra search filter JSON format, see Using document attributes to filter search results.
exact_response: boolSpecifies whether to return an exact response from the Amazon Kendra index or to let the Amazon Bedrock model you select generate a response based on the results. To use this feature, you must first add FAQ questions to your index by following the steps at Adding frequently asked questions (FAQs) to an index.
Implementations§
source§impl QnAKendraConfiguration
impl QnAKendraConfiguration
sourcepub fn kendra_index(&self) -> &str
pub fn kendra_index(&self) -> &str
The ARN of the Amazon Kendra index to use.
sourcepub fn query_filter_string_enabled(&self) -> bool
pub fn query_filter_string_enabled(&self) -> bool
Specifies whether to enable an Amazon Kendra filter string or not.
sourcepub fn query_filter_string(&self) -> Option<&str>
pub fn query_filter_string(&self) -> Option<&str>
Contains the Amazon Kendra filter string to use if enabled. For more information on the Amazon Kendra search filter JSON format, see Using document attributes to filter search results.
sourcepub fn exact_response(&self) -> bool
pub fn exact_response(&self) -> bool
Specifies whether to return an exact response from the Amazon Kendra index or to let the Amazon Bedrock model you select generate a response based on the results. To use this feature, you must first add FAQ questions to your index by following the steps at Adding frequently asked questions (FAQs) to an index.
source§impl QnAKendraConfiguration
impl QnAKendraConfiguration
sourcepub fn builder() -> QnAKendraConfigurationBuilder
pub fn builder() -> QnAKendraConfigurationBuilder
Creates a new builder-style object to manufacture QnAKendraConfiguration.
Trait Implementations§
source§impl Clone for QnAKendraConfiguration
impl Clone for QnAKendraConfiguration
source§fn clone(&self) -> QnAKendraConfiguration
fn clone(&self) -> QnAKendraConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for QnAKendraConfiguration
impl Debug for QnAKendraConfiguration
source§impl PartialEq for QnAKendraConfiguration
impl PartialEq for QnAKendraConfiguration
source§fn eq(&self, other: &QnAKendraConfiguration) -> bool
fn eq(&self, other: &QnAKendraConfiguration) -> bool
self and other values to be equal, and is used
by ==.