Optional. Enabled query rephraser model type. If not set, it will use LARGE by default.
ModelType
Query rephraser types. Currently only supports single-hop (maxRephraseSteps = 1) model selections. For multi-hop (maxRephraseSteps > 1), there is only one default model.
Enums
MODEL_TYPE_UNSPECIFIED
Unspecified model type.
SMALL
Small query rephraser model. Gemini 1.0 XS model.
LARGE
Large query rephraser model. Gemini 1.0 Pro model.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-27 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eQueryUnderstandingSpec\u003c/code\u003e allows for the configuration of query classification and rephrasing, along with an option to disable spell correction.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eQueryClassificationSpec\u003c/code\u003e lets you specify the types of query classifications you want to enable, such as adversarial, jail-breaking, or non-answer-seeking queries.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eQueryRephraserSpec\u003c/code\u003e allows disabling query rephrasing, setting the maximum number of rephrase steps (up to 5), and specifying a \u003ccode\u003eModelSpec\u003c/code\u003e for the query rephraser.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eModelSpec\u003c/code\u003e defines the \u003ccode\u003eModelType\u003c/code\u003e to be used for query rephrasing, with options for \u003ccode\u003eSMALL\u003c/code\u003e (Gemini 1.0 XS) or \u003ccode\u003eLARGE\u003c/code\u003e (Gemini 1.0 Pro) models, defaulting to \u003ccode\u003eLARGE\u003c/code\u003e if not specified.\u003c/p\u003e\n"],["\u003cp\u003eThere are different enums for \u003ccode\u003eType\u003c/code\u003e, such as \u003ccode\u003eADVERSARIAL_QUERY\u003c/code\u003e and \u003ccode\u003eNON_ANSWER_SEEKING_QUERY_V2\u003c/code\u003e, and also for \u003ccode\u003eModelType\u003c/code\u003e, such as \u003ccode\u003eSMALL\u003c/code\u003e and \u003ccode\u003eLARGE\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# QueryUnderstandingSpec\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [QueryClassificationSpec](#QueryClassificationSpec)\n - [JSON representation](#QueryClassificationSpec.SCHEMA_REPRESENTATION)\n- [Type](#Type)\n- [QueryRephraserSpec](#QueryRephraserSpec)\n - [JSON representation](#QueryRephraserSpec.SCHEMA_REPRESENTATION)\n- [ModelSpec](#ModelSpec)\n - [JSON representation](#ModelSpec.SCHEMA_REPRESENTATION)\n- [ModelType](#ModelType)\n\nQuery understanding specification.\n\nQueryClassificationSpec\n-----------------------\n\nQuery classification specification.\n\nType\n----\n\nQuery classification types.\n\nQueryRephraserSpec\n------------------\n\nQuery rephraser specification.\n\nModelSpec\n---------\n\nQuery Rephraser Model specification.\n\nModelType\n---------\n\nQuery rephraser types. Currently only supports single-hop (maxRephraseSteps = 1) model selections. For multi-hop (maxRephraseSteps \\\u003e 1), there is only one default model."]]