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}]
Inheritance
object
MetadataFilter
Namespace: Glitch9.AIDevKit.Google
Assembly: .dll
Syntax
public class MetadataFilter
Properties
Conditions
Required. The Conditions for the given key that will trigger this filter. Multiple Conditions are joined by logical ORs.
Declaration
public List<Condition> Conditions { get; set; }
Property Value
Type | Description |
---|---|
List<Condition> |
Key
Required. The key of the metadata to filter on.
Declaration
public string Key { get; set; }
Property Value
Type | Description |
---|---|
string |