ComparisonFilter

Models & Types ยท AiDotNet.RetrievalAugmentedGeneration.Filtering

A leaf node comparing a single metadata field against a scalar value with one of the operators Eq, Ne, Gt, Gte, Lt or Lte.

Inheritance: MetadataFilter โ†’ ComparisonFilter

Constructors

Constructor Summary
ComparisonFilter(MetadataFilterOperator op, string key, object value) Initializes a new comparison node.

Properties

Property Summary
MetadataFilterOperator Operator { get; }
object Value { get; } Gets the value being compared against.
string Key { get; } Gets the metadata field name being compared.

Methods

Method Summary
bool Matches(IReadOnlyDictionary<string, object> metadata)