Table of Contents

Class RagRetrievalConfigHybridSearch

Namespace
GenerativeAI.Types.RagEngine
Assembly
GenerativeAI.dll

Config for Hybrid Search.

public class RagRetrievalConfigHybridSearch
Inheritance
RagRetrievalConfigHybridSearch
Inherited Members
Extension Methods

Properties

Alpha

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.

[JsonPropertyName("alpha")]
public float? Alpha { get; set; }

Property Value

float?