Table of Contents

Class MetadataFilter

User provided filter to limit retrieval based on Chunk or Document level metadata values. Example (genre = drama OR genre = action): key = "document.custom_metadata.genre" conditions = [{stringValue = "drama", operation = EQUAL}, {stringValue = "action", operation = EQUAL}]

public class MetadataFilter
Inheritance
object
MetadataFilter

Properties

Conditions

Required. The Conditions for the given key that will trigger this filter. Multiple Conditions are joined by logical ORs.

public List<Condition> Conditions { get; set; }

Property Value

List<Condition>

Key

Required. The key of the metadata to filter on.

public string Key { get; set; }

Property Value

string