Cloud AI Platform v1beta1 API - Class RagQuery.Types.Ranking (1.0.0-beta11)

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.

Configurations for hybrid search results ranking.

Inheritance

object > RagQuery.Types.Ranking

Namespace

Google.Cloud.AIPlatform.V1Beta1

Assembly

Google.Cloud.AIPlatform.V1Beta1.dll

Constructors

Ranking()

public Ranking()

Ranking(Ranking)

public Ranking(RagQuery.Types.Ranking other)
Parameter
Name Description
other RagQueryTypesRanking

Properties

Alpha

public float Alpha { get; set; }

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.

Property Value
Type Description
float

HasAlpha

public bool HasAlpha { get; }

Gets whether the "alpha" field is set

Property Value
Type Description
bool