Class RagRetrievalConfigRankingLlmRanker
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
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a RagRetrievalConfigRankingLlmRanker object.
public static RagRetrievalConfigRankingLlmRanker? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- RagRetrievalConfigRankingLlmRanker
The deserialized RagRetrievalConfigRankingLlmRanker object, or null if deserialization fails.