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}]
Inherited Members
Namespace: Glitch9.AIDevKit.Google
Assembly: Glitch9.AIDevKit.Provider.Google.dll
Syntax
public class MetadataFilter
Properties
| Edit this page View SourceConditions
Required. The Conditions for the given key that will trigger this filter. Multiple Conditions are joined by logical ORs.
Declaration
[JsonProperty("conditions")]
public List<Condition> Conditions { get; set; }
Property Value
| Type | Description |
|---|---|
| List<Condition> |
Key
Required. The key of the metadata to filter on.
Declaration
[JsonProperty("key")]
public string Key { get; set; }
Property Value
| Type | Description |
|---|---|
| string |