The public proto to represent the conversational search customization config. It will be converted to the internal proto in the backend.
JSON representation |
---|
{
"retailerDisplayName": string,
"intentClassificationConfig": {
object ( |
Fields | |
---|---|
retailerDisplayName |
Optional. The retailer's display name that could be used in our LLM answers. Example - "Google" |
intentClassificationConfig |
Optional. The configs for intent classification. |
catalog |
Required. Resource name of the catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog} |
IntentClassificationConfig
The public proto to represent the intent classification config. It will be converted to the internal proto in the backend.
JSON representation |
---|
{ "modelPreamble": string, "example": [ { object ( |
Fields | |
---|---|
modelPreamble |
Optional. Customers can use the preamble to specify any requirements for blocklisting intent classification. This preamble will be added to the blocklisting intent classification model prompt. |
example[] |
Optional. A list of examples for intent classification. |
blocklistKeywords[] |
Optional. A list of keywords that will be used to classify the query to the "BLOCKLISTED" intent type. The keywords are case insensitive. |
disabledIntentTypes[] |
Optional. A list of intent types that will be disabled for this customer. The intent types must match one of the predefined intent types defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype |
Union field force_intent_classification . Parsed from the external proto force_intent_classification string. force_intent_classification can be only one of the following: |
|
inlineSource |
Optional. Inline source for intent classifications. |
InlineSource
Inline source for intent classifications.
JSON representation |
---|
{
"inlineForceIntents": [
{
object ( |
Fields | |
---|---|
inlineForceIntents[] |
Optional. A list of inline force intent classifications. |
InlineForceIntent
An inline force intent classification configuration.
JSON representation |
---|
{
"query": string,
"operation": enum ( |
Fields | |
---|---|
query |
Optional. A example query. |
operation |
Optional. The operation to perform for the query. |
intentType |
Optional. The intentType must match one of the predefined intent types defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype |
Operation
Controls whether the query will be exact match or contains match.
Enums | |
---|---|
OPERATION_UNSPECIFIED |
Unspecified match operation. |
EXACT_MATCH |
Exact match. |
CONTAINS |
Contains match. |
Example
An example for intent classification.
JSON representation |
---|
{ "query": string, "intentType": string, "reason": string, "classifiedPositive": boolean } |
Fields | |
---|---|
query |
Required. Example query. |
intentType |
Optional. The intentType must match one of the predefined intent types defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype |
reason |
Optional. The reason for the intent classification. This is used to explain the intent classification decision. |
classifiedPositive |
Required. Whether the example is classified positively. |