From b10a19041a528731a9d30e49f91cee9596aeeda2 Mon Sep 17 00:00:00 2001 From: Daniel Thomas Date: Tue, 27 Feb 2024 16:06:35 +0100 Subject: [PATCH] Supabase metadata filtering fix (#11428) --- .../llama_index/vector_stores/supabase/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama-index-integrations/vector_stores/llama-index-vector-stores-supabase/llama_index/vector_stores/supabase/base.py b/llama-index-integrations/vector_stores/llama-index-vector-stores-supabase/llama_index/vector_stores/supabase/base.py index 007fd108aa7fd..03dab9d83153b 100644 --- a/llama-index-integrations/vector_stores/llama-index-vector-stores-supabase/llama_index/vector_stores/supabase/base.py +++ b/llama-index-integrations/vector_stores/llama-index-vector-stores-supabase/llama_index/vector_stores/supabase/base.py @@ -71,7 +71,7 @@ def client(self) -> None: def _to_vecs_filters(self, filters: MetadataFilters) -> Any: """Convert llama filters to vecs filters. $eq is the only supported operator.""" vecs_filter = defaultdict(list) - filter_cond = f"${filters.condition}" + filter_cond = f"${filters.condition.value}" for f in filters.legacy_filters(): sub_filter = {}