From 766e7669132b30abf447a3c7eb297a15ff80336d Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 30 Jun 2023 18:11:43 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(vectorstores.py):=20set=20'v?= =?UTF-8?q?alue'=20of=20'persist=5Fdirectory'=20field=20to=20False=20to=20?= =?UTF-8?q?disable=20persistence=20The=20'value'=20of=20the=20'persist=5Fd?= =?UTF-8?q?irectory'=20field=20is=20set=20to=20False=20to=20disable=20pers?= =?UTF-8?q?istence.=20This=20change=20ensures=20that=20the=20'persist=5Fdi?= =?UTF-8?q?rectory'=20field=20is=20not=20shown=20and=20the=20value=20is=20?= =?UTF-8?q?not=20set=20to=20True=20by=20default.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/template/frontend_node/vectorstores.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/backend/langflow/template/frontend_node/vectorstores.py b/src/backend/langflow/template/frontend_node/vectorstores.py index ca7cf2b0c..13c955f7a 100644 --- a/src/backend/langflow/template/frontend_node/vectorstores.py +++ b/src/backend/langflow/template/frontend_node/vectorstores.py @@ -51,7 +51,7 @@ class VectorStoreFrontendNode(FrontendNode): required=False, show=True, advanced=False, - value=True, + value=False, display_name="Persist", ) extra_fields.append(extra_field) @@ -285,6 +285,3 @@ class VectorStoreFrontendNode(FrontendNode): elif field.name == "text_key": field.show = False - - if field.name == "persist_directory": - field.value = False