🐛 fix(vectorstores.py): set 'value' of 'persist_directory' field to False to disable persistence

The 'value' of the 'persist_directory' field is set to False to disable persistence. This change ensures that the 'persist_directory' field is not shown and the value is not set to True by default.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-06-30 18:11:43 -03:00
commit 766e766913

View file

@ -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