Class GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpec
Answer generation specification.
Implements
Inherited Members
Namespace: Google.Apis.DiscoveryEngine.v1beta.Data
Assembly: Google.Apis.DiscoveryEngine.v1beta.dll
Syntax
public class GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpec : IDirectResponseSchemaProperties
AnswerLanguageCode
Language code for Answer. Use language tags defined by BCP47. Note: This is an experimental feature.
Declaration
[JsonProperty("answerLanguageCode")]
public virtual string AnswerLanguageCode { get; set; }Property Value
| Type | Description | 
|---|---|
| string | 
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }Property Value
| Type | Description | 
|---|---|
| string | 
IgnoreAdversarialQuery
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.
Declaration
[JsonProperty("ignoreAdversarialQuery")]
public virtual bool? IgnoreAdversarialQuery { get; set; }Property Value
| Type | Description | 
|---|---|
| bool? | 
IgnoreJailBreakingQuery
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.
Declaration
[JsonProperty("ignoreJailBreakingQuery")]
public virtual bool? IgnoreJailBreakingQuery { get; set; }Property Value
| Type | Description | 
|---|---|
| bool? | 
IgnoreLowRelevantContent
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.
Declaration
[JsonProperty("ignoreLowRelevantContent")]
public virtual bool? IgnoreLowRelevantContent { get; set; }Property Value
| Type | Description | 
|---|---|
| bool? | 
IgnoreNonAnswerSeekingQuery
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.
Declaration
[JsonProperty("ignoreNonAnswerSeekingQuery")]
public virtual bool? IgnoreNonAnswerSeekingQuery { get; set; }Property Value
| Type | Description | 
|---|---|
| bool? | 
IncludeCitations
Specifies whether to include citation metadata in the answer. The default value is false.
Declaration
[JsonProperty("includeCitations")]
public virtual bool? IncludeCitations { get; set; }Property Value
| Type | Description | 
|---|---|
| bool? | 
ModelSpec
Answer generation model specification.
Declaration
[JsonProperty("modelSpec")]
public virtual GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecModelSpec ModelSpec { get; set; }Property Value
| Type | Description | 
|---|---|
| GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecModelSpec | 
MultimodalSpec
Optional. Multimodal specification.
Declaration
[JsonProperty("multimodalSpec")]
public virtual GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecMultimodalSpec MultimodalSpec { get; set; }Property Value
| Type | Description | 
|---|---|
| GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecMultimodalSpec | 
PromptSpec
Answer generation prompt specification.
Declaration
[JsonProperty("promptSpec")]
public virtual GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecPromptSpec PromptSpec { get; set; }Property Value
| Type | Description | 
|---|---|
| GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecPromptSpec |