Table of Contents

Class RagRetrievalConfigRankingLlmRanker

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

Config for LlmRanker. This data type is not supported in Gemini API.

public record RagRetrievalConfigRankingLlmRanker : IEquatable<RagRetrievalConfigRankingLlmRanker>
Inheritance
RagRetrievalConfigRankingLlmRanker
Implements
Inherited Members

Properties

ModelName

Optional. The model name used for ranking. See Supported models (https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).

[JsonPropertyName("modelName")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? ModelName { get; set; }

Property Value

string

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a RagRetrievalConfigRankingLlmRanker object.

public static RagRetrievalConfigRankingLlmRanker? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

RagRetrievalConfigRankingLlmRanker

The deserialized RagRetrievalConfigRankingLlmRanker object, or null if deserialization fails.