From d45b43dca9617ff8295e08db1ed780a9c0b42860 Mon Sep 17 00:00:00 2001 From: "codeflash-ai[bot]" <148906541+codeflash-ai[bot]@users.noreply.github.com> Date: Fri, 16 Feb 2024 17:39:57 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20Speed=20up=20visit=5Fstruc?= =?UTF-8?q?tured=5Fquery=20by=209%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/langchain/langchain/retrievers/self_query/weaviate.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libs/langchain/langchain/retrievers/self_query/weaviate.py b/libs/langchain/langchain/retrievers/self_query/weaviate.py index 1db80b9ba00f5..5f27c4d8479ad 100644 --- a/libs/langchain/langchain/retrievers/self_query/weaviate.py +++ b/libs/langchain/langchain/retrievers/self_query/weaviate.py @@ -69,9 +69,7 @@ def visit_comparison(self, comparison: Comparison) -> Dict: } return filter - def visit_structured_query( - self, structured_query: StructuredQuery - ) -> Tuple[str, dict]: + def visit_structured_query(self, structured_query): if structured_query.filter is None: kwargs = {} else: