Cloud AI Platform v1beta1 API - Class RagRetrievalConfig.Types.HybridSearch (1.0.0-beta12)

public sealed class RagRetrievalConfig.Types.HybridSearch : IMessage<RagRetrievalConfig.Types.HybridSearch>, IEquatable<RagRetrievalConfig.Types.HybridSearch>, IDeepCloneable<RagRetrievalConfig.Types.HybridSearch>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud AI Platform v1beta1 API class RagRetrievalConfig.Types.HybridSearch.

Config for Hybrid Search.

Inheritance

object > RagRetrievalConfig.Types.HybridSearch

Namespace

Google.Cloud.AIPlatform.V1Beta1

Assembly

Google.Cloud.AIPlatform.V1Beta1.dll

Constructors

HybridSearch()

public HybridSearch()

HybridSearch(HybridSearch)

public HybridSearch(RagRetrievalConfig.Types.HybridSearch other)
Parameter
Name Description
other RagRetrievalConfigTypesHybridSearch

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