langchain.retrievers.self_query.dashvector
.DashvectorTranslator¶
- class langchain.retrievers.self_query.dashvector.DashvectorTranslator[source]¶
Logic for converting internal query language elements to valid filters.
Attributes
allowed_comparators
allowed_operators
map_dict
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) str [source]¶
Translate a Comparison.
- visit_structured_query(structured_query: StructuredQuery) Tuple[str, dict] [source]¶
Translate a StructuredQuery.