From 9cb52994add3f9bcf38c0e1148bc2ec7c0273242 Mon Sep 17 00:00:00 2001 From: Gabriel Almeida Date: Sat, 27 May 2023 11:03:06 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(langflow):=20add=20Weaviat?= =?UTF-8?q?e=20to=20vectorstores=20and=20add=20TODO=20comment=20to=20fix?= =?UTF-8?q?=20Weaviate=20integration=20Weaviate=20has=20been=20added=20to?= =?UTF-8?q?=20the=20list=20of=20vectorstores=20in=20the=20config.yaml=20fi?= =?UTF-8?q?le.=20A=20TODO=20comment=20has=20been=20added=20to=20the=20node?= =?UTF-8?q?s.py=20file=20to=20fix=20the=20integration=20with=20Weaviate.?= =?UTF-8?q?=20Weaviate=20requires=20the=20weaviate=5Furl=20to=20be=20passe?= =?UTF-8?q?d=20as=20it=20is=20not=20part=20of=20the=20class=20or=20from=5F?= =?UTF-8?q?texts=20method.=20The=20add=5Fextra=5Ffields=20method=20needs?= =?UTF-8?q?=20to=20be=20fixed=20to=20include=20the=20weaviate=5Furl=20para?= =?UTF-8?q?meter.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/config.yaml | 1 + src/backend/langflow/template/nodes.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/backend/langflow/config.yaml b/src/backend/langflow/config.yaml index 940874846..149e7bf80 100644 --- a/src/backend/langflow/config.yaml +++ b/src/backend/langflow/config.yaml @@ -109,6 +109,7 @@ utilities: vectorstores: - Chroma - Qdrant + - Weaviate wrappers: - RequestsWrapper # Wait more tests # - ChatPromptTemplate diff --git a/src/backend/langflow/template/nodes.py b/src/backend/langflow/template/nodes.py index eb6730457..d19cae612 100644 --- a/src/backend/langflow/template/nodes.py +++ b/src/backend/langflow/template/nodes.py @@ -686,3 +686,6 @@ class VectorStoreFrontendNode(FrontendNode): field.advanced = True if "key" in field.name: field.password = False + + # TODO: Weaviate requires weaviate_url to be passed as it is not part of + # the class or from_texts method. We need the add_extra_fields to fix this