langchain.retrievers.self_query.supabase.SupabaseVectorTranslator¶

class langchain.retrievers.self_query.supabase.SupabaseVectorTranslator[source]¶

Translate Langchain filters to Supabase PostgREST filters.

Attributes

allowed_comparators

Subset of allowed logical comparators.

allowed_operators

Subset of allowed logical operators.

metadata_column

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.

Parameters

comparison (Comparison) –

Return type

str

visit_operation(operation: Operation) str[source]¶

Translate an Operation.

Parameters

operation (Operation) –

Return type

str

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

Translate a StructuredQuery.

Parameters

structured_query (StructuredQuery) –

Return type

Tuple[str, Dict[str, str]]