langchain.retrievers.self_query.timescalevector.TimescaleVectorTranslator¶

class langchain.retrievers.self_query.timescalevector.TimescaleVectorTranslator[source]¶

Translate the internal query language elements to valid filters.

Attributes

COMPARATOR_MAP

OPERATOR_MAP

allowed_comparators

allowed_operators

Subset of allowed logical operators.

Methods

__init__()

visit_comparison(comparison)

Translate a Comparison.

visit_operation(operation)

Translate an Operation.

visit_structured_query(structured_query)

Translate a StructuredQuery.

__init__()¶
visit_comparison(comparison: Comparison) client.Predicates[source]¶

Translate a Comparison.

visit_operation(operation: Operation) client.Predicates[source]¶

Translate an Operation.

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

Translate a StructuredQuery.