QueryUnderstandingSpec

Query understanding specification.

JSON representation
{
  "queryClassificationSpec": {
    object (QueryClassificationSpec)
  },
  "queryRephraserSpec": {
    object (QueryRephraserSpec)
  }
}
Fields
queryClassificationSpec

object (QueryClassificationSpec)

Query classification specification.

queryRephraserSpec

object (QueryRephraserSpec)

Query rephraser specification.

QueryClassificationSpec

Query classification specification.

JSON representation
{
  "types": [
    enum (Type)
  ]
}
Fields
types[]

enum (Type)

Enabled query classification types.

Type

Query classification types.

Enums
TYPE_UNSPECIFIED Unspecified query classification type.
ADVERSARIAL_QUERY Adversarial query classification type.
NON_ANSWER_SEEKING_QUERY Non-answer-seeking query classification type, for chit chat.
JAIL_BREAKING_QUERY Jail-breaking query classification type.
NON_ANSWER_SEEKING_QUERY_V2 Non-answer-seeking query classification type, for no clear intent.

QueryRephraserSpec

Query rephraser specification.

JSON representation
{
  "disable": boolean,
  "maxRephraseSteps": integer
}
Fields
disable

boolean

Disable query rephraser.

maxRephraseSteps

integer

Max rephrase steps. The max number is 5 steps. If not set or set to < 1, it will be set to 1 by default.