DashvectorTranslator#

class langchain_community.query_constructors.dashvector.DashvectorTranslator[source]#

Logic for converting internal query language elements to valid filters.

Attributes

allowed_comparators

Allowed comparators for the visitor.

allowed_operators

Allowed operators for the visitor.

map_dict

Methods

visit_comparison(comparison)

Translate a Comparison.

visit_operation(operation)

Translate an Operation.

visit_structured_query(structured_query)

Translate a StructuredQuery.

visit_comparison(comparison: Comparison) str[source]#

Translate a Comparison.

Parameters:

comparison (Comparison) – Comparison to translate.

Return type:

str

visit_operation(operation: Operation) str[source]#

Translate an Operation.

Parameters:

operation (Operation) – Operation to translate.

Return type:

str

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

Translate a StructuredQuery.

Parameters:

structured_query (StructuredQuery) – StructuredQuery to translate.

Return type:

Tuple[str, dict]