Class: Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::AnswerGenerationSpec
- Inherits:
-
Object
- Object
- Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::AnswerGenerationSpec
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb
Overview
Answer generation specification.
Defined Under Namespace
Classes: ModelSpec, PromptSpec
Instance Attribute Summary collapse
-
#answer_language_code ⇒ ::String
Language code for Answer.
-
#ignore_adversarial_query ⇒ ::Boolean
Specifies whether to filter out adversarial queries.
-
#ignore_jail_breaking_query ⇒ ::Boolean
Optional.
-
#ignore_low_relevant_content ⇒ ::Boolean
Specifies whether to filter out queries that have low relevance.
-
#ignore_non_answer_seeking_query ⇒ ::Boolean
Specifies whether to filter out queries that are not answer-seeking.
-
#include_citations ⇒ ::Boolean
Specifies whether to include citation metadata in the answer.
-
#model_spec ⇒ ::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::AnswerGenerationSpec::ModelSpec
Answer generation model specification.
-
#prompt_spec ⇒ ::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::AnswerGenerationSpec::PromptSpec
Answer generation prompt specification.
Instance Attribute Details
#answer_language_code ⇒ ::String
Returns Language code for Answer. Use language tags defined by BCP47. Note: This is an experimental feature.
390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 |
# File 'proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb', line 390 class AnswerGenerationSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Answer Generation Model specification. # @!attribute [rw] model_version # @return [::String] # Model version. If not set, it will use the default stable model. # Allowed values are: stable, preview. class ModelSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Answer generation prompt specification. # @!attribute [rw] preamble # @return [::String] # Customized preamble. class PromptSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#ignore_adversarial_query ⇒ ::Boolean
Returns Specifies whether to filter out adversarial queries. The default value
is false
.
Google employs search-query classification to detect adversarial
queries. No answer is returned if the search query is classified as an
adversarial query. For example, a user might ask a question regarding
negative comments about the company or submit a query designed to
generate unsafe, policy-violating output. If this field is set to
true
, we skip generating answers for adversarial queries and return
fallback messages instead.
390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 |
# File 'proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb', line 390 class AnswerGenerationSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Answer Generation Model specification. # @!attribute [rw] model_version # @return [::String] # Model version. If not set, it will use the default stable model. # Allowed values are: stable, preview. class ModelSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Answer generation prompt specification. # @!attribute [rw] preamble # @return [::String] # Customized preamble. class PromptSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#ignore_jail_breaking_query ⇒ ::Boolean
Returns Optional. Specifies whether to filter out jail-breaking queries. The
default value is false
.
Google employs search-query classification to detect jail-breaking
queries. No summary is returned if the search query is classified as a
jail-breaking query. A user might add instructions to the query to
change the tone, style, language, content of the answer, or ask the
model to act as a different entity, e.g. "Reply in the tone of a
competing company's CEO". If this field is set to true
, we skip
generating summaries for jail-breaking queries and return fallback
messages instead.
390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 |
# File 'proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb', line 390 class AnswerGenerationSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Answer Generation Model specification. # @!attribute [rw] model_version # @return [::String] # Model version. If not set, it will use the default stable model. # Allowed values are: stable, preview. class ModelSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Answer generation prompt specification. # @!attribute [rw] preamble # @return [::String] # Customized preamble. class PromptSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#ignore_low_relevant_content ⇒ ::Boolean
Returns Specifies whether to filter out queries that have low relevance.
If this field is set to false
, all search results are used regardless
of relevance to generate answers. If set to true
or unset, the behavior
will be determined automatically by the service.
390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 |
# File 'proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb', line 390 class AnswerGenerationSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Answer Generation Model specification. # @!attribute [rw] model_version # @return [::String] # Model version. If not set, it will use the default stable model. # Allowed values are: stable, preview. class ModelSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Answer generation prompt specification. # @!attribute [rw] preamble # @return [::String] # Customized preamble. class PromptSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#ignore_non_answer_seeking_query ⇒ ::Boolean
Returns Specifies whether to filter out queries that are not answer-seeking.
The default value is false
.
Google employs search-query classification to detect answer-seeking
queries. No answer is returned if the search query is classified as a
non-answer seeking query. If this field is set to true
, we skip
generating answers for non-answer seeking queries and return
fallback messages instead.
390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 |
# File 'proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb', line 390 class AnswerGenerationSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Answer Generation Model specification. # @!attribute [rw] model_version # @return [::String] # Model version. If not set, it will use the default stable model. # Allowed values are: stable, preview. class ModelSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Answer generation prompt specification. # @!attribute [rw] preamble # @return [::String] # Customized preamble. class PromptSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#include_citations ⇒ ::Boolean
Returns Specifies whether to include citation metadata in the answer. The default
value is false
.
390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 |
# File 'proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb', line 390 class AnswerGenerationSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Answer Generation Model specification. # @!attribute [rw] model_version # @return [::String] # Model version. If not set, it will use the default stable model. # Allowed values are: stable, preview. class ModelSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Answer generation prompt specification. # @!attribute [rw] preamble # @return [::String] # Customized preamble. class PromptSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#model_spec ⇒ ::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::AnswerGenerationSpec::ModelSpec
Returns Answer generation model specification.
390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 |
# File 'proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb', line 390 class AnswerGenerationSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Answer Generation Model specification. # @!attribute [rw] model_version # @return [::String] # Model version. If not set, it will use the default stable model. # Allowed values are: stable, preview. class ModelSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Answer generation prompt specification. # @!attribute [rw] preamble # @return [::String] # Customized preamble. class PromptSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#prompt_spec ⇒ ::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::AnswerGenerationSpec::PromptSpec
Returns Answer generation prompt specification.
390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 |
# File 'proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb', line 390 class AnswerGenerationSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Answer Generation Model specification. # @!attribute [rw] model_version # @return [::String] # Model version. If not set, it will use the default stable model. # Allowed values are: stable, preview. class ModelSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Answer generation prompt specification. # @!attribute [rw] preamble # @return [::String] # Customized preamble. class PromptSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |