From 5e9b94a7519f5553d19a0c5e37e7f8cdc8440fe2 Mon Sep 17 00:00:00 2001 From: SebanDan Date: Wed, 11 Sep 2024 15:35:16 +0200 Subject: [PATCH] fix: pgvector and_subfilter --- engine/clients/pgvector/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/clients/pgvector/parser.py b/engine/clients/pgvector/parser.py index 159b8b80..30aeccea 100644 --- a/engine/clients/pgvector/parser.py +++ b/engine/clients/pgvector/parser.py @@ -13,7 +13,7 @@ def build_condition( if or_subfilters is not None and len(or_subfilters) > 0: clauses.append(f"( {' OR '.join(or_subfilters)} )") if and_subfilters is not None and len(and_subfilters) > 0: - clauses.append(f"( {' AND '.join(or_subfilters)} )") + clauses.append(f"( {' AND '.join(and_subfilters)} )") return " AND ".join(clauses)