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 class that extends the BasicTranslator. It is designed to work with PineconeStore, a type of vector store in LangChain. The class is initialized with a set of allowed operators and comparators, which are used in the translation process to construct queries and compare results.
Example