langchain.retrievers.self_query.databricks_vector_search.DatabricksVectorSearchTranslator

class langchain.retrievers.self_query.databricks_vector_search.DatabricksVectorSearchTranslator[source]

Translate Databricks vector search internal query language elements to valid filters.

Attributes

allowed_comparators

allowed_operators

Subset of allowed logical comparators.

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) Dict[source]

Translate a Comparison.

Parameters

comparison (Comparison) –

Return type

Dict

visit_operation(operation: Operation) Dict[source]

Translate an Operation.

Parameters

operation (Operation) –

Return type

Dict

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

Translate a StructuredQuery.

Parameters

structured_query (StructuredQuery) –

Return type

Tuple[str, dict]