Vertex AI v1 API - Class RagRetrievalConfig.Types.Filter (3.60.0)

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

Reference documentation and code samples for the Vertex AI v1 API class RagRetrievalConfig.Types.Filter.

Config for filters.

Inheritance

object > RagRetrievalConfig.Types.Filter

Namespace

Google.Cloud.AIPlatform.V1

Assembly

Google.Cloud.AIPlatform.V1.dll

Constructors

Filter()

public Filter()

Filter(Filter)

public Filter(RagRetrievalConfig.Types.Filter other)
Parameter
Name Description
other RagRetrievalConfigTypesFilter

Properties

HasVectorDistanceThreshold

public bool HasVectorDistanceThreshold { get; }

Gets whether the "vector_distance_threshold" field is set

Property Value
Type Description
bool

HasVectorSimilarityThreshold

public bool HasVectorSimilarityThreshold { get; }

Gets whether the "vector_similarity_threshold" field is set

Property Value
Type Description
bool

MetadataFilter

public string MetadataFilter { get; set; }

Optional. String for metadata filtering.

Property Value
Type Description
string

VectorDbThresholdCase

public RagRetrievalConfig.Types.Filter.VectorDbThresholdOneofCase VectorDbThresholdCase { get; }
Property Value
Type Description
RagRetrievalConfigTypesFilterVectorDbThresholdOneofCase

VectorDistanceThreshold

public double VectorDistanceThreshold { get; set; }

Optional. Only returns contexts with vector distance smaller than the threshold.

Property Value
Type Description
double

VectorSimilarityThreshold

public double VectorSimilarityThreshold { get; set; }

Optional. Only returns contexts with vector similarity larger than the threshold.

Property Value
Type Description
double