Table of Contents

Class RagQueryRanking

Namespace
GenerativeAI.Types.RagEngine
Assembly
GenerativeAI.dll

Configurations for hybrid search results ranking.

public class RagQueryRanking
Inheritance
RagQueryRanking
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?