#[non_exhaustive]pub struct OpensearchConfiguration {
pub domain_endpoint: String,
pub index_name: String,
pub exact_response: bool,
pub exact_response_fields: Option<ExactResponseFields>,
pub include_fields: Option<Vec<String>>,
}Expand description
Contains details about the configuration of the Amazon OpenSearch Service database 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.domain_endpoint: StringThe endpoint of the Amazon OpenSearch Service domain.
index_name: StringThe name of the Amazon OpenSearch Service index.
exact_response: boolSpecifies whether to return an exact response or to return an answer generated by the model using the fields you specify from the database.
exact_response_fields: Option<ExactResponseFields>Contains the names of the fields used for an exact response to the user.
include_fields: Option<Vec<String>>Contains a list of fields from the Amazon OpenSearch Service that the model can use to generate the answer to the query.
Implementations§
source§impl OpensearchConfiguration
impl OpensearchConfiguration
sourcepub fn domain_endpoint(&self) -> &str
pub fn domain_endpoint(&self) -> &str
The endpoint of the Amazon OpenSearch Service domain.
sourcepub fn index_name(&self) -> &str
pub fn index_name(&self) -> &str
The name of the Amazon OpenSearch Service index.
sourcepub fn exact_response(&self) -> bool
pub fn exact_response(&self) -> bool
Specifies whether to return an exact response or to return an answer generated by the model using the fields you specify from the database.
sourcepub fn exact_response_fields(&self) -> Option<&ExactResponseFields>
pub fn exact_response_fields(&self) -> Option<&ExactResponseFields>
Contains the names of the fields used for an exact response to the user.
sourcepub fn include_fields(&self) -> &[String]
pub fn include_fields(&self) -> &[String]
Contains a list of fields from the Amazon OpenSearch Service that the model can use to generate the answer to the query.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .include_fields.is_none().
source§impl OpensearchConfiguration
impl OpensearchConfiguration
sourcepub fn builder() -> OpensearchConfigurationBuilder
pub fn builder() -> OpensearchConfigurationBuilder
Creates a new builder-style object to manufacture OpensearchConfiguration.
Trait Implementations§
source§impl Clone for OpensearchConfiguration
impl Clone for OpensearchConfiguration
source§fn clone(&self) -> OpensearchConfiguration
fn clone(&self) -> OpensearchConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for OpensearchConfiguration
impl Debug for OpensearchConfiguration
source§impl PartialEq for OpensearchConfiguration
impl PartialEq for OpensearchConfiguration
source§fn eq(&self, other: &OpensearchConfiguration) -> bool
fn eq(&self, other: &OpensearchConfiguration) -> bool
self and other values to be equal, and is used
by ==.