Skip to content

Commit

Permalink
supabase metadata filtering fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-tee authored Feb 27, 2024
1 parent 66f9d25 commit 61198ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,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.value}"
filter_cond = f"${filters.condition}"

for f in filters.legacy_filters():
sub_filter = {}
Expand Down

0 comments on commit 61198ed

Please sign in to comment.