Table of Contents

Class GeminiMetadataFilter

User provided filter to limit retrieval based on Chunk or Document level metadata values.

public class GeminiMetadataFilter
Inheritance
GeminiMetadataFilter
Extension Methods

Remarks

Example (genre = drama OR genre = action): key = "document.custom_metadata.genre" conditions = [{stringValue = "drama", operation = EQUAL}, {stringValue = "action", operation = EQUAL}]

Fields

Conditions

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

public GeminiMetadataCondition[] Conditions

Field Value

GeminiMetadataCondition[]

Key

The key of the metadata to filter on.

public string Key

Field Value

string