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 Cloud AI Platform 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"]],[["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-04-09 UTC."],[[["This page provides reference documentation for the `RagQuery.Types.Ranking` class within the Cloud AI Platform v1beta1 API, detailing its structure and usage."],["`RagQuery.Types.Ranking` is designed for configuring how hybrid search results are ranked, implementing interfaces such as `IMessage`, `IEquatable`, and `IDeepCloneable`."],["The class inherits members from the base `object` class, such as `GetHashCode`, `GetType`, and `ToString`, and it can be constructed using a default constructor or a copy constructor that takes another `RagQuery.Types.Ranking` instance."],["The `Alpha` property, a float value ranging from 0 to 1, is available to adjust the balance between dense and sparse vector search results, where the default value is set to 0.5."],["The property `HasAlpha` will let you know if the \"alpha\" field has been set, this is a boolean value."]]],[]]