🐛 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:
parent
1a9f69ef60
commit
766e766913
1 changed files with 1 additions and 4 deletions
|
|
@ -51,7 +51,7 @@ class VectorStoreFrontendNode(FrontendNode):
|
||||||
required=False,
|
required=False,
|
||||||
show=True,
|
show=True,
|
||||||
advanced=False,
|
advanced=False,
|
||||||
value=True,
|
value=False,
|
||||||
display_name="Persist",
|
display_name="Persist",
|
||||||
)
|
)
|
||||||
extra_fields.append(extra_field)
|
extra_fields.append(extra_field)
|
||||||
|
|
@ -285,6 +285,3 @@ class VectorStoreFrontendNode(FrontendNode):
|
||||||
|
|
||||||
elif field.name == "text_key":
|
elif field.name == "text_key":
|
||||||
field.show = False
|
field.show = False
|
||||||
|
|
||||||
if field.name == "persist_directory":
|
|
||||||
field.value = False
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue