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 ==.impl StructuralPartialEq for QnAKendraConfiguration
Auto Trait Implementations§
impl Freeze for QnAKendraConfiguration
impl RefUnwindSafe for QnAKendraConfiguration
impl Send for QnAKendraConfiguration
impl Sync for QnAKendraConfiguration
impl Unpin for QnAKendraConfiguration
impl UnwindSafe for QnAKendraConfiguration
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more