public static interface AnswerQueryRequest.AnswerGenerationSpecOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
String |
getAnswerLanguageCode()
Language code for Answer.
|
com.google.protobuf.ByteString |
getAnswerLanguageCodeBytes()
Language code for Answer.
|
boolean |
getIgnoreAdversarialQuery()
Specifies whether to filter out adversarial queries.
|
boolean |
getIgnoreLowRelevantContent()
Specifies whether to filter out queries that have low relevance.
|
boolean |
getIgnoreNonAnswerSeekingQuery()
Specifies whether to filter out queries that are not answer-seeking.
|
boolean |
getIncludeCitations()
Specifies whether to include citation metadata in the answer.
|
AnswerQueryRequest.AnswerGenerationSpec.ModelSpec |
getModelSpec()
Answer generation model specification.
|
AnswerQueryRequest.AnswerGenerationSpec.ModelSpecOrBuilder |
getModelSpecOrBuilder()
Answer generation model specification.
|
AnswerQueryRequest.AnswerGenerationSpec.PromptSpec |
getPromptSpec()
Answer generation prompt specification.
|
AnswerQueryRequest.AnswerGenerationSpec.PromptSpecOrBuilder |
getPromptSpecOrBuilder()
Answer generation prompt specification.
|
boolean |
hasIgnoreLowRelevantContent()
Specifies whether to filter out queries that have low relevance.
|
boolean |
hasModelSpec()
Answer generation model specification.
|
boolean |
hasPromptSpec()
Answer generation prompt specification.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofboolean hasModelSpec()
Answer generation model specification.
.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1;
AnswerQueryRequest.AnswerGenerationSpec.ModelSpec getModelSpec()
Answer generation model specification.
.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1;
AnswerQueryRequest.AnswerGenerationSpec.ModelSpecOrBuilder getModelSpecOrBuilder()
Answer generation model specification.
.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1;
boolean hasPromptSpec()
Answer generation prompt specification.
.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2;
AnswerQueryRequest.AnswerGenerationSpec.PromptSpec getPromptSpec()
Answer generation prompt specification.
.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2;
AnswerQueryRequest.AnswerGenerationSpec.PromptSpecOrBuilder getPromptSpecOrBuilder()
Answer generation prompt specification.
.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2;
boolean getIncludeCitations()
Specifies whether to include citation metadata in the answer. The default value is `false`.
bool include_citations = 3;String getAnswerLanguageCode()
Language code for Answer. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Note: This is an experimental feature.
string answer_language_code = 4;com.google.protobuf.ByteString getAnswerLanguageCodeBytes()
Language code for Answer. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Note: This is an experimental feature.
string answer_language_code = 4;boolean getIgnoreAdversarialQuery()
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.
bool ignore_adversarial_query = 5;boolean getIgnoreNonAnswerSeekingQuery()
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.
bool ignore_non_answer_seeking_query = 6;boolean hasIgnoreLowRelevantContent()
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.
optional bool ignore_low_relevant_content = 7;boolean getIgnoreLowRelevantContent()
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.
optional bool ignore_low_relevant_content = 7;Copyright © 2024 Google LLC. All rights reserved.