Formats a given function (either an operator or a comparator) into a string.
The function to format.
Formatted string representation of the function.
Merges two filters into one, using a specified merge type.
The default filter.
The generated filter.
The type of merge to perform. Can be 'and', 'or', or 'replace'.
If true, the default filter will be used even if the generated filter is not empty.
The merged filter, or undefined if both filters are empty.
Optional
filter?: T["FilterType"]
Specialized translator for the Chroma vector database. It extends the BasicTranslator class and translates internal query language elements to valid filters. The class defines a subset of allowed logical operators and comparators that can be used in the translation process.
Example