Vertex AI is transitioning to become part of Gemini Enterprise Agent Platform. See the most up-to-date information in the Agent Platform documentation.
The query to retrieve contexts. Currently only text query is supported. query can be only one of the following:
text
string
Optional. The query in text format to get relevant contexts.
JSON representation
{"similarityTopK": integer,"ranking": {object (Ranking)},"ragRetrievalConfig": {object (RagRetrievalConfig)},// query"text": string// Union type}
Ranking
Configurations for hybrid search results ranking.
Fields
alpha
number
Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.
[[["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 2026-03-11 UTC."],[],[]]