🔧 fix(frontend_node/textsplitters.py): add is_list=True to the 'documents' parameter to indicate it is a list

🔧 fix(frontend_node/vectorstores.py): add is_list=True to the 'field' parameter to indicate it is a list
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-07-14 18:37:30 -03:00
commit 82b973de43
2 changed files with 2 additions and 1 deletions

View file

@ -15,6 +15,7 @@ class TextSplittersFrontendNode(FrontendNode):
required=True,
show=True,
name="documents",
is_list=True,
)
)
name = "separator"

View file

@ -259,7 +259,7 @@ class VectorStoreFrontendNode(FrontendNode):
field.required = False
field.show = True
field.advanced = False
field.is_list = True
elif "embedding" in field.name:
# for backwards compatibility
field.name = "embedding"