Commit graph

  • d5f2d83511 🚀 feat(githooks, Makefile): add pre-commit hook to run 'make format' before committing 🔧 chore(Makefile): add 'init' target to install pre-commit hooks The pre-commit hook is added to run 'make format' before committing. This ensures that the code is formatted correctly before it is committed. The Makefile is updated to include an 'init' target that installs the pre-commit hooks. Gabriel Almeida 2023-05-27 12:59:44 -03:00
  • de0a581031 🔥 refactor(nodes.py): remove unused import of deepcopy 🔥 refactor(custom_lists.py): remove unused import of vectorstores The import of deepcopy in nodes.py and vectorstores in custom_lists.py are not used in the codebase and can be safely removed to improve code readability and maintainability. Gabriel Almeida 2023-05-27 12:14:50 -03:00
  • 3f12363adc Format and add ChromaIcon Gabriel Almeida 2023-05-27 11:58:15 -03:00
  • fbe6e2beb8 Format Gabriel Almeida 2023-05-27 11:57:16 -03:00
  • c772a4dcdd 🚀 chore(package.json): add vite-plugin-svgr dependency to both root and frontend package.json ✨ feat(GenericNode): add ChromaIcon and fix validation status icons 🎨 style(GenericNode): refactor GenericNode component to improve readability 🐛 fix(vite.config.ts): add svgr plugin to the frontend Vite configuration The vite-plugin-svgr dependency was added to both the root and frontend package.json files to enable the use of SVG files as React components. The GenericNode component was updated to include the ChromaIcon component and to fix the validation status icons. The component was also refactored to improve readability. The svgr plugin was added to the frontend Vite configuration to enable the use of SVG files as React components. Gabriel Almeida 2023-05-27 11:55:41 -03:00
  • 9cb52994ad 🔧 chore(langflow): add Weaviate to vectorstores and add TODO comment to fix Weaviate integration Weaviate has been added to the list of vectorstores in the config.yaml file. A TODO comment has been added to the nodes.py file to fix the integration with Weaviate. Weaviate requires the weaviate_url to be passed as it is not part of the class or from_texts method. The add_extra_fields method needs to be fixed to include the weaviate_url parameter. Gabriel Almeida 2023-05-27 11:03:06 -03:00
  • 297c518c3b Merge remote-tracking branch 'origin/dev' into new_vec_stores Gabriel Almeida 2023-05-27 09:43:13 -03:00
  • e3983da487 🔍 chore(.gitignore): add qdrant_storage to ignore list 🆕 feat(.vscode/launch.json): add launch configuration for FastAPI app The qdrant_storage directory is now added to the ignore list to prevent it from being tracked by git. A new launch configuration for FastAPI app is added to the .vscode/launch.json file. This configuration allows for debugging the app with uvicorn and sets the port to 7860, reloads the app on changes, and sets the log level to debug. Gabriel Almeida 2023-05-27 09:41:35 -03:00
  • 194e581417 🚀 feat(pyproject.toml): add weaviate-client dependency to enable integration with Weaviate The weaviate-client package has been added as a dependency to the project to enable integration with Weaviate. This will allow the application to communicate with Weaviate and perform operations such as adding and retrieving data. Gabriel Almeida 2023-05-27 09:40:55 -03:00
  • b42b4e5868 Merge remote-tracking branch 'origin/main' into dev Gabriel Almeida 2023-05-27 09:38:52 -03:00
  • 56da636915 🔨 refactor(nodes.py): extract common field attributes to variables and set them accordingly This commit extracts common field attributes to variables and sets them accordingly. The basic_fields and advanced_fields variables are used to set the show and advanced attributes of the fields. The API Key field is now displayed as "API Key" and its value is hidden. The location field now has a default value of ":memory:" and its placeholder is also set to ":memory:". The password attribute of the key fields is set to False. Gabriel Almeida 2023-05-26 23:09:56 -03:00
  • 6f94fa60bc
    Refactor Vector stores creator to help implementing others (#365) Gabriel Luiz Freitas Almeida 2023-05-26 22:50:26 -03:00
  • 12c23408e0
    Merge branch 'dev' into 335-implement-docarray-vectorstore Gabriel Luiz Freitas Almeida 2023-05-26 22:50:16 -03:00
  • 29245d18e2 🔥 chore(pyproject.toml): remove gptcache dependency The gptcache dependency is no longer needed and has been removed from the project. Gabriel Almeida 2023-05-26 22:45:57 -03:00
  • ee041f4d91
    fix crash when upload large file, not saving files on browser storage (#362) Gabriel Luiz Freitas Almeida 2023-05-26 22:38:15 -03:00
  • e10a21f824 🐛 fix(langflow): add type ignore to node variable in LangChainTypeCreator 🐛 fix(langflow): remove unused imports in base.py files The variable node in LangChainTypeCreator was causing a type error, so a type ignore was added to fix the issue. Additionally, unused imports were removed from both base.py files. Gabriel Almeida 2023-05-26 22:34:53 -03:00
  • bd9d90786a 🔥 chore(base.py): remove unused process_field method from TemplateFieldCreator The process_field method in the TemplateFieldCreator class is not used anywhere in the codebase and is therefore removed to improve code readability and maintainability. Gabriel Almeida 2023-05-26 22:29:52 -03:00
  • 342c2eaec7 🔨 refactor(base.py): refactor FrontendNode.format_field() method to improve readability and maintainability This commit refactors the FrontendNode.format_field() method to improve its readability and maintainability. The method now uses helper methods to handle specific field types and values, and to determine whether a field should be shown, be a password field, or be multiline. The method also uses a dictionary to handle special fields and their respective handlers. Gabriel Almeida 2023-05-26 22:20:08 -03:00
  • 7e8eea5e87 fix crash when upload large file, not saving files on browser storage anovazzi1 2023-05-26 22:05:47 -03:00
  • 04579a25a2 🚀 chore(config.yaml): update config.yaml file with new documentloaders, memories, prompts, textsplitters, toolkits, utilities, and vectorstores ✨ feat(config.yaml): add Qdrant vectorstore and RequestsWrapper to the config.yaml file The config.yaml file has been updated with new documentloaders, memories, prompts, textsplitters, toolkits, utilities, and vectorstores. The Qdrant vectorstore has been added to the vectorstores section. The RequestsWrapper has been added to the wrappers section. Gabriel Almeida 2023-05-26 18:23:15 -03:00
  • 7280fae428 Merge branch 'dev' into 335-implement-docarray-vectorstore Gabriel Almeida 2023-05-26 18:22:40 -03:00
  • 373b599a1a Removed pulse from edges Lucas Oliveira 2023-05-25 20:00:34 -03:00
  • bef1cc096c Fixed Copy Paste issues by disabling it when the user clicks at the node Lucas Oliveira 2023-05-25 19:56:42 -03:00
  • d299a675a0
    Hotfix for Import Flows modal (#357) Lucas Oliveira 2023-05-25 19:06:34 -03:00
  • b53eb683bf Hotfix for Import Flows modal Lucas Oliveira 2023-05-25 18:29:00 -03:00
  • 41b6a2c6fe Fixed visual bug at Import Flows modal cards Lucas Oliveira 2023-05-25 18:20:17 -03:00
  • 8ed755f6dc
    🔖 chore(pyproject.toml): bump version to 0.0.78 (#351) Gabriel Luiz Freitas Almeida 2023-05-25 10:42:57 -03:00
  • 59694a43d1
    Merge branch 'main' into fix_deepcopy Gabriel Luiz Freitas Almeida 2023-05-25 10:42:36 -03:00
  • 6d849eeee7 Merge branch 'fix_deepcopy' of https://github.com/logspace-ai/langflow into fix_deepcopy Gabriel Almeida 2023-05-25 10:41:25 -03:00
  • 6afe35378a 🔖 chore(pyproject.toml): bump version to 0.0.78 The version number in the pyproject.toml file has been updated from 0.0.77 to 0.0.78. This is a chore commit as it does not introduce any new features or fix any bugs, but rather updates the version number to reflect the changes made in the code. Gabriel Almeida 2023-05-25 10:40:11 -03:00
  • bdbd88c5d3
    Hotfix: Deepcopy removal and bump to 0.0.77 (#350) Gabriel Luiz Freitas Almeida 2023-05-25 10:35:08 -03:00
  • 98f5e9ad56
    Merge branch 'main' into fix_deepcopy Gabriel Luiz Freitas Almeida 2023-05-25 10:34:52 -03:00
  • a808679b76
    Hotfix: remove deepcopy, fixes llm rebuilding (#349) Gabriel Luiz Freitas Almeida 2023-05-25 10:22:23 -03:00
  • b5cee8d87c 🔖 chore(pyproject.toml): bump up version to 0.0.77 The version number in the pyproject.toml file has been updated from 0.0.76 to 0.0.77. This is a chore commit as it does not introduce any new features or fix any bugs, but only updates the version number. Gabriel Almeida 2023-05-25 10:14:39 -03:00
  • 3029fe029f 🐛 fix(chat_manager.py): fix is_first_message logic to correctly identify first message 🐛 fix(nodes.py): remove deepcopying of certain objects to improve performance 🐛 fix(loading.py): add error handling for empty documents in instantiate_textsplitter The is_first_message logic in chat_manager.py was not correctly identifying the first message. The fix in this commit changes the comparison to <= 1 instead of == 0. In nodes.py, deepcopying of certain objects was removed to improve performance. This was done because deepcopying was not necessary for these objects. In loading.py, error handling was added to handle empty documents in instantiate_textsplitter. This was done to prevent errors when the source provided did not load correctly or was empty. Gabriel Almeida 2023-05-25 10:10:56 -03:00
  • d89e4bc985 🐛 fix(__main__.py): pass dev flag to update_settings function ✨ feat(__main__.py): add serve_on_jcloud function to deploy Langflow server on Jina AI Cloud 🐛 fix(config.yaml): remove duplicate entries and fix indentation The update_settings function now accepts a dev flag to enable running the app in development mode. The serve_on_jcloud function has been added to deploy the Langflow server on Jina AI Cloud. The config.yaml file has been cleaned up by removing duplicate entries and fixing indentation. Gabriel Almeida 2023-05-25 09:03:28 -03:00
  • 3791247545
    add useEffect to prevent chat lock on fail of onClose method (#342) Gabriel Luiz Freitas Almeida 2023-05-25 06:29:39 -03:00
  • 2866e4ea78 fix size of import on dev anovazzi1 2023-05-24 16:27:21 -03:00
  • 59951a3f68 add useEffect to prevent chat lock on fail of onClose method anovazzi1 2023-05-24 16:26:51 -03:00
  • a66adff004 🔥 refactor(custom_lists.py): remove unused vectorstores_type_to_cls_dict variable 🔨 refactor(vector_store/base.py): refactor VectorstoreCreator to use import_class from langflow.interface.importing.utils The vectorstores_type_to_cls_dict variable was not being used, so it was removed. The VectorstoreCreator class was refactored to use the import_class function from langflow.interface.importing.utils instead of importing it directly. This improves the code's readability and maintainability. Gabriel Almeida 2023-05-24 09:27:00 -03:00
  • 0c45186fcb
    hot fix for dinamic size of font for buttonBox component (#337) anovazzi1 2023-05-24 01:41:20 -03:00
  • 62701de9b8 Fixed Undo and Redo on different pages Lucas Oliveira 2023-05-23 21:00:12 -03:00
  • f7cf6a378f create min font size with truncate for buttonBox component anovazzi1 2023-05-23 19:28:27 -03:00
  • e597a6e20a 🔀 chore(config): add DocArrayHnswSearch and DocArrayInMemorySearch to vectorstores 🐛 fix(base.py): correctly handle nested lists in Node.build() method ✨ feat(vector_store): add VectorStoreFrontendNode to handle vector store templates 🐛 fix(util.py): add build_template_from_method to correctly build templates from class methods The configuration file now includes two new vector stores, DocArrayHnswSearch and DocArrayInMemorySearch. The Node.build() method now correctly handles nested lists. A new VectorStoreFrontendNode has been added to handle vector store templates. The build_template_from_method function has been added to correctly build templates from class methods. Gabriel Almeida 2023-05-23 16:51:29 -03:00
  • 3f854a88ae hot fix for dinamic size of font for buttonBox component anovazzi1 2023-05-23 16:31:20 -03:00
  • d24404eba9
    Hotfix: Chroma does not raise NotEnoughElementsException anymore (#334) Gabriel Luiz Freitas Almeida 2023-05-23 12:35:23 -03:00
  • 311ebed676 🔥 chore(lint.yml): remove Python 3.8 and 3.11 from the matrix 🔥 chore(test.yml): remove Python 3.11 from the matrix Python 3.8 and 3.11 were removed from the matrix in lint.yml to reduce the number of Python versions being tested. Python 3.11 was removed from the matrix in test.yml as it is not yet released and therefore not supported. Chroma uses onnxruntime which does not support 3.11 as of yet. This will be added back in once onnxruntime supports 3.11. Gabriel Almeida 2023-05-23 12:27:39 -03:00
  • a7d376a9de Merge branch 'dev' into fix_chroma Gabriel Almeida 2023-05-23 12:06:53 -03:00
  • 32b8b92614 Merge branch 'dev' into fix_chroma Gabriel Almeida 2023-05-23 12:04:43 -03:00
  • ddf75d7eb9 🔥 refactor(run.py): remove NotEnoughElementsException import and exception handling Gabriel Almeida 2023-05-23 12:02:55 -03:00
  • 59d0c5cbce
    ci: test lcserve push job (#333) Deepankar Mahapatro 2023-05-23 20:22:09 +05:30
  • 5dfaa9a81a 🎨 style(tests): add display_name field to LLM in test_agents_template.py and test_chains_template.py The display_name field was added to the LLM object in the test_agents_template.py and test_chains_template.py files. This field is used to display the name of the LLM in the UI. Gabriel Almeida 2023-05-23 11:51:31 -03:00
  • accf284b30 ci: test lcserve push job Deepankar Mahapatro 2023-05-23 20:15:13 +05:30
  • 9d910b769a
    Release 0.0.75 (#329) Gabriel Luiz Freitas Almeida 2023-05-23 11:25:54 -03:00
  • 7228274b0d Merge branch 'dev' of https://github.com/logspace-ai/langflow into dev Gabriel Almeida 2023-05-23 10:40:25 -03:00
  • 3a7644dd2c updating font size of import card based on title anovazzi1 2023-05-23 01:06:49 -03:00
  • e3656f7998 update display_name of llm to LLM anovazzi1 2023-05-22 23:41:07 -03:00
  • c46b1f67f3 new toogle using tailwindUI anovazzi1 2023-05-22 23:29:12 -03:00
  • 14f27df3ae Merge branch 'main' into dev Gabriel Almeida 2023-05-22 20:09:21 -03:00
  • c8594a16c3 Changed name of function to disable copy and paste Lucas Oliveira 2023-05-22 20:02:35 -03:00
  • 2b6b790f4a Fixed padding and disable copy and paste on chat input Lucas Oliveira 2023-05-22 20:01:26 -03:00
  • 610beb18dd Fixed Copy and Paste, refactored tabsContext code Lucas Oliveira 2023-05-22 19:54:32 -03:00
  • f465d9712d Fixed Copy and Paste bug on Code Area Lucas Oliveira 2023-05-22 19:38:31 -03:00
  • 1c0626527a Refactor UI styles for better readability Rodrigo Nader 2023-05-22 18:24:52 -03:00
  • 2d6d781e91 Refactor: Simplify span element code and rename 'documentloaders' to 'Loaders' Rodrigo Nader 2023-05-22 17:47:17 -03:00
  • 3ba7068500 🎨 style(App.tsx): adjust the position of the link to Logspace website The position of the link to the Logspace website has been adjusted to be more centered on the page. The left margin has been increased by one unit to make it more visually appealing. Gabriel Almeida 2023-05-22 17:39:18 -03:00
  • cfca98c2b2 Merge branch 'dev' of https://github.com/logspace-ai/langflow into dev Gabriel Almeida 2023-05-22 17:26:54 -03:00
  • b247ebcc40 🐛 fix(chatInput): fix chat input resizing issue ✨ feat(chatModal): add focus to chat input when modal is opened The chat input was not resizing properly when the user typed more than one line of text. This was fixed by setting the height of the input to the scrollHeight of the input element. Additionally, the chat input is now focused when the chat modal is opened, which improves the user experience. Gabriel Almeida 2023-05-22 17:26:34 -03:00
  • af469d47e7 🐛 fix(chatInput): fix chat input resizing issue ✨ feat(chatModal): add focus to chat input when modal is opened The chat input was not resizing properly when the user typed more than one line of text. This was fixed by setting the height of the input to the scrollHeight of the input element. Additionally, the chat input is now focused when the chat modal is opened, which improves the user experience. Gabriel Almeida 2023-05-22 17:25:17 -03:00
  • 802e5ec31a Format Gabriel Almeida 2023-05-22 16:44:36 -03:00
  • 13403de3fc 🚀 feat(App.tsx): add version number to the footer The version number is now displayed in the footer of the application. The version number is fetched from the server using the /version endpoint and displayed in the footer. This allows users to easily identify which version of the application they are using. Gabriel Almeida 2023-05-22 08:39:39 -03:00
  • 3c3576e0ad Format Gabriel Almeida 2023-05-22 08:39:03 -03:00
  • 6dcd267bfa 🔖 chore(pyproject.toml): update langchain version to 0.0.176 🔖 chore(pyproject.toml): bump up package version to 0.0.75 The langchain package version has been updated to 0.0.176 to include the latest changes and improvements. The package version has also been bumped up to 0.0.75 to reflect the changes made to the dependencies. Gabriel Almeida 2023-05-22 08:24:13 -03:00
  • 5635a86f04 🐛 fix(tabsContext.tsx): add null check for flow.data to prevent errors The code now checks if flow.data is null before iterating over its nodes. This prevents errors that would occur when flow.data is null. Gabriel Almeida 2023-05-22 08:21:52 -03:00
  • 4998838853 format Gabriel Almeida 2023-05-22 08:21:29 -03:00
  • 9860b12b91 remove line-clamp as it is in tailwind by default now Gabriel Almeida 2023-05-22 08:19:59 -03:00
  • e4e0049c2b Merge branch 'dev' of https://github.com/logspace-ai/langflow into dev Gabriel Almeida 2023-05-22 08:02:45 -03:00
  • b277c0bf1a
    node updating template, base classes and description (#326) Gabriel Luiz Freitas Almeida 2023-05-22 08:02:00 -03:00
  • aeba16fa8a 🔥 chore(lcserve.py): remove unused import statements The import statements for pathlib.Path and fastapi.staticfiles.StaticFiles were not used in the code and were therefore removed to improve code readability and maintainability. Gabriel Almeida 2023-05-22 07:46:40 -03:00
  • 5090cdae7e
    Retry_get_all (#324) anovazzi1 2023-05-22 00:24:10 -03:00
  • a6c9c28792 removed useless comment anovazzi1 2023-05-22 00:22:05 -03:00
  • e85c918e6f node updating update node template, base classes and description anovazzi1 2023-05-19 17:18:41 -03:00
  • c93c4627d0 feat(typesContext.tsx): add retry logic to getAll API call Gabriel Almeida 2023-05-19 10:07:13 -03:00
  • 0d43252478 format Gabriel Almeida 2023-05-19 10:06:59 -03:00
  • e1120bba4e style(chatModal): format code with prettier Gabriel Almeida 2023-05-19 10:05:32 -03:00
  • f8ba1fc2a2
    chore: lint fix (#320) Gabriel Luiz Freitas Almeida 2023-05-18 10:42:36 -03:00
  • 18aaede030 chore: lint fix Deepankar Mahapatro 2023-05-18 16:55:40 +05:30
  • 697652e729
    feat: deploy langflow using langchain-serve (#307) Gabriel Luiz Freitas Almeida 2023-05-18 07:40:18 -03:00
  • 601dd6d560 chore: update to latest lc-serve Deepankar Mahapatro 2023-05-18 12:07:57 +05:30
  • fd638994cb
    Merge branch 'logspace-ai:dev' into dev Deepankar Mahapatro 2023-05-18 12:06:14 +05:30
  • 1338fa3521 refactor(embeddings/base.py): add EmbeddingFrontendNode as a property of EmbeddingCreator fix(loading.py): remove headers from params before instantiating embedding refactor(nodes.py): add EmbeddingFrontendNode and hide headers field in it Gabriel Almeida 2023-05-17 15:14:06 -03:00
  • f6d977f139 style(nodes, GenericNode): fix indentation and add line breaks for readability Gabriel Almeida 2023-05-17 14:46:36 -03:00
  • 0ed4475c6d
    Validation_fix (#317) Gabriel Luiz Freitas Almeida 2023-05-17 14:21:52 -03:00
  • 3810589876 format Gabriel Almeida 2023-05-17 12:54:10 -03:00
  • 9411239a5b feat(GenericNode): add validation status icons and tooltips to node parameters and fix validation status state update Gabriel Almeida 2023-05-17 12:50:42 -03:00
  • 0e200d8992 fix(validate.py): return exception message in response when validation fails Gabriel Almeida 2023-05-17 12:19:24 -03:00
  • 830a2e3119
    Hotfixes: Dark Mode classes and Text Wrapper (#309) Gabriel Luiz Freitas Almeida 2023-05-17 11:36:09 -03:00
  • 6afebffe1f style(tailwind.config.js): added dark theme for attribution Gabriel Almeida 2023-05-17 11:28:18 -03:00
  • 4a9d1c7c54
    Merge branch 'main' into hotfix Gabriel Luiz Freitas Almeida 2023-05-17 11:22:17 -03:00
  • c92f3109e8 style(chatTrigger): adjust chat trigger button position by changing bottom margin from 4 to 6 Gabriel Almeida 2023-05-17 11:03:46 -03:00