Required. The resource name of the servingConfigs.search serving config, such as projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config, or projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config. This field is used to identify the serving configuration name, set of models used to make the search.
Request body
The request body contains data with the following structure:
A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique identifier should not change if the visitor logs in or out of the website.
This field should NOT have a fixed value such as unknown_visitor.
The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
userLabels
map (key: string, value: string)
The user labels applied to a resource must meet the following requirements:
Each resource can have multiple labels, up to a maximum of 64.
Each label must be a key-value pair.
Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters.
Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed.
The key portion of a label must be unique. However, you can use the same key with multiple resources.
Keys must start with a lowercase letter or international character.
[[["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-02-28 UTC."],[[["The `POST` request to `https://discoveryengine.googleapis.com/v1/{servingConfig=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}:answer` is used to query for answers, using gRPC Transcoding syntax."],["The `servingConfig` path parameter is required and specifies the resource name of the serving configuration to be used, such as `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`."],["The request body must include a `query` object containing the user's current query, and also it can include specifications such as `safetySpec`, `relatedQuestionsSpec`, `groundingSpec`, `answerGenerationSpec`, `searchSpec`, and `queryUnderstandingSpec`."],["A unique `userPseudoId` is required for tracking visitors, which should be a UTF-8 encoded string with a length of up to 128 characters, and `userLabels` can also be provided."],["To make this request, the OAuth scope `https://www.googleapis.com/auth/cloud-platform` is required, along with the IAM permission `discoveryengine.servingConfigs.answer` on the `servingConfig` resource."]]],[]]