A query to retrieve relevant contexts.
similarityTopK
(deprecated)integer
Optional. The number of contexts to retrieve.
Optional. Configurations for hybrid search results ranking.
Optional. The retrieval config for the query.
queryUnion type
query can be only one of the following:textstring
Optional. The query in text format to get relevant contexts.
| JSON representation |
|---|
{ "similarityTopK": integer, "ranking": { object ( |
Ranking
Configurations for hybrid search results ranking.
alphanumber
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.
| JSON representation |
|---|
{ "alpha": number } |