public sealed class RagQuery.Types.Ranking : IMessage<RagQuery.Types.Ranking>, IEquatable<RagQuery.Types.Ranking>, IDeepCloneable<RagQuery.Types.Ranking>, IBufferMessage, IMessage
Reference documentation and code samples for the Vertex AI v1beta1 API class RagQuery.Types.Ranking.
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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["\u003cp\u003eThis documentation covers the \u003ccode\u003eRagQuery.Types.Ranking\u003c/code\u003e class, which is part of the Vertex AI v1beta1 API and provides configurations for hybrid search results ranking.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRagQuery.Types.Ranking\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the base \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes a constructor \u003ccode\u003eRanking()\u003c/code\u003e that creates an instance of the ranking class, as well as \u003ccode\u003eRanking(RagQuery.Types.Ranking other)\u003c/code\u003e that takes another instance of the class to clone it.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAlpha\u003c/code\u003e property, which is a float, allows control over the weight balance between dense and sparse vector search results, ranging from 0 to 1, and has a \u003ccode\u003eHasAlpha\u003c/code\u003e boolean property to check if it's set.\u003c/p\u003e\n"]]],[],null,[]]