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.
Visits a comparison and returns a result.
The comparison to visit.
The result of visiting the comparison.
Visits an operation and returns a result.
The operation to visit.
The result of visiting the operation.
Visits a structured query and returns a result.
The structured query to visit.
The result of visiting the structured query.
Generated using TypeDoc
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