langchain.retrievers.self_query.myscale.MyScaleTranslator¶

class langchain.retrievers.self_query.myscale.MyScaleTranslator(metadata_key: str = 'metadata')[source]¶

Translate MyScale internal query language elements to valid filters.

Attributes

allowed_comparators

allowed_operators

Subset of allowed logical operators.

map_dict

Methods

__init__([metadata_key])

visit_comparison(comparison)

Translate a Comparison.

visit_operation(operation)

Translate an Operation.

visit_structured_query(structured_query)

Translate a StructuredQuery.

__init__(metadata_key: str = 'metadata') None[source]¶
visit_comparison(comparison: Comparison) Dict[source]¶

Translate a Comparison.

visit_operation(operation: Operation) Dict[source]¶

Translate an Operation.

visit_structured_query(structured_query: StructuredQuery) Tuple[str, dict][source]¶

Translate a StructuredQuery.