a9c7fc0a69🔧 chore(config): add VectorStoreToolkit to toolkits list 🐛 fix(base.py): remove deepcopy for VectorStore and VectorStoreRouter agents 🐛 fix(nodes.py): remove deepcopy for VectorStore and VectorStoreRouter agents 🔧 chore(loading.py): comment out unused code for loading toolkits 🐛 fix(toolkits/base.py): add Tool to base_classes in get_signature method The changes to the config file add the VectorStoreToolkit to the list of toolkits. The deepcopy for VectorStore and VectorStoreRouter agents was causing issues, so it was removed from the base.py and nodes.py files. The loading.py file had some unused code for loading toolkits, so it was commented out. Finally, the base.py file had a bug where the Tool class was not being added to the base_classes list in the get_signature method, so it was added.
Gabriel Almeida
2023-05-30 00:38:14 -03:00
c9403b6433Adding the trash icon and height icons
Cristhian Zanforlin Lousa
2023-05-30 00:03:27 -03:00
44faf64e09🔨 refactor(utils.ts): rename nodeIcons keys to improve semantics The keys of the nodeIcons object have been renamed to improve semantics and readability. The new names are more descriptive of the functionality of the corresponding icons.
Gabriel Almeida
2023-05-29 23:45:13 -03:00
Merge branch 'dev' into new_icons
anovazzi1
2023-05-29 19:10:50 -03:00
c05b94e4e9🚀 feat(test_prompts_template.py): change type of "suffix" and "prefix" fields to "prompt" and update "format_instructions" field The "suffix" and "prefix" fields have been changed from type "str" to "prompt" to allow for more flexibility in the input. The "format_instructions" field has been updated to be required and multiline, and to show the instructions by default. This change will make it easier for users to understand the expected input format.
Gabriel Almeida
2023-05-29 18:57:56 -03:00
46959acaa9🔨 refactor(prompts.py): swap suffix and format_instructions fields 🔨 refactor(util.py): add format_instructions to the list of fields to format in format_dict function The suffix and format_instructions fields in the ZeroShotPromptNode class were swapped to improve the readability of the code. The format_instructions field is now above the suffix field, which makes more sense as it is a required field. In the util.py file, the format_instructions field was added to the list of fields to format in the format_dict function. This ensures that the format_instructions field is properly formatted when the function is called.
Gabriel Almeida
2023-05-29 18:52:47 -03:00
🚀 feat(langflow): add support for extra fields in VectorStoreFrontendNode (#396)
Alexandre Henrique Pereira Tavares
2023-05-29 16:15:25 -03:00
3614296fd8🚀 feat(langflow): add support for extra fields in VectorStoreFrontendNode ✨ feat(template): add method to add fields to a template The VectorStoreFrontendNode now supports adding extra fields to its template. The add_extra_fields method is called after the node is loaded and adds the weaviate_url field to the template if the node is of type Weaviate. The Template class now has a method to add fields to a template. This method is used by the VectorStoreFrontendNode to add the weaviate_url field to its template.
Gabriel Almeida
2023-05-29 15:49:01 -03:00
20a438428f🔧 chore(frontend): format code with prettier The changes in this commit are purely cosmetic, as the code has been formatted with prettier to improve its readability and consistency. No functional changes have been made.
Gabriel Almeida
2023-05-29 14:35:41 -03:00
38cc3af18d🔺 chore(pyproject.toml): update langchain and langchain-serve dependencies The langchain and langchain-serve dependencies have been updated to versions 0.0.184 and 0.0.38 respectively. This update may include bug fixes, performance improvements, or new features.
Gabriel Almeida
2023-05-29 14:35:18 -03:00
9bac61b563🚀 feat(config.yaml): add new text splitters and toolkits Added new text splitters to the configuration file: RecursiveCharacterTextSplitter, LatexTextSplitter, and PythonCodeTextSplitter. These text splitters will be used to split text into smaller chunks for processing. Also, added new toolkits to the configuration file: OpenAPIToolkit and JsonToolkit. These toolkits will be used to process the text chunks generated by the text splitters.
Gabriel Almeida
2023-05-29 07:30:58 -03:00
Error Handling for Modal Calls in Different Flows Prompt/Text (#390)
Rodrigo Nader
2023-05-29 00:26:39 -03:00
46813e5c3fFixing modal trattative error when is Prompt/Text
Cristhian Zanforlin Lousa
2023-05-28 20:37:07 -03:00
4c71b1d17f🔇 chore(tabsContext.tsx): comment out code that was causing issues with file upload The code that was causing issues with file upload has been commented out for now. The code was resetting the content of a file, which was causing issues with the file upload.
Gabriel Almeida
2023-05-28 20:34:01 -03:00
ece9530973🎨 style(inputComponent): change input placeholder text to be more descriptive 🎨 style(inputListComponent): change input placeholder text to be more descriptive The placeholder text for both input components has been changed to "Type something..." to be more descriptive and provide better guidance to the user.
Gabriel Almeida
2023-05-28 17:57:33 -03:00
edfc103999🚀 feat(config.yaml): add CohereEmbeddings to the list of supported embeddings The CohereEmbeddings is added to the list of supported embeddings in the config.yaml file. This allows the application to use the CohereEmbeddings for language processing tasks.
Gabriel Almeida
2023-05-28 17:53:49 -03:00
f9bc83c7aaMerge remote-tracking branch 'origin/dev' into cohere
Gabriel Almeida
2023-05-28 17:49:05 -03:00
fa8cd1e31c🔒 chore(pyproject.toml): update dependencies to latest versions FastAPI and Langchain dependencies have been updated to their latest versions to ensure that the application is using the latest features and security patches. The Llama-cpp-python dependency has also been updated to a more recent version.
Gabriel Almeida
2023-05-28 17:36:37 -03:00
4409066e81🔼 chore(pyproject.toml): update langchain dependency from 0.0.176 to 0.0.183 ✨ feat(pyproject.toml): add cohere dependency to enable new features 🔧 chore(config.yaml): add Cohere to the list of supported LLMS The langchain dependency was updated to version 0.0.183 to take advantage of the latest features and bug fixes. The cohere dependency was added to enable new features. Cohere is now added to the list of supported LLMS in the config.yaml file.
Gabriel Almeida
2023-05-28 17:28:42 -03:00
5f25bb0d58🐛 fix(utils.py): fix try_setting_streaming_options function to correctly set streaming attribute The try_setting_streaming_options function now correctly sets the streaming attribute of the llm object to True if it is an instance of BaseLanguageModel and has the streaming attribute. This fixes a bug where the streaming attribute was not being set correctly.
Gabriel Almeida
2023-05-28 17:25:27 -03:00
f315d78f14🔺 chore(pyproject.toml): update langchain dependency from 0.0.176 to 0.0.183 ✨ feat(pyproject.toml): add ctransformers dependency to support text classification tasks The langchain dependency has been updated to version 0.0.183 to ensure that the latest features and bug fixes are available. The ctransformers dependency has been added to support text classification tasks.
Gabriel Almeida
2023-05-28 17:15:10 -03:00
c2027898de🐛 fix(config.yaml): add CTransformers to the list of supported llms 🐛 fix(utils.py): fix setting of streaming option for llm 🎨 style(llms.py): add model_file and model_type fields to the list of non-advanced fields The first change adds CTransformers to the list of supported llms in the config.yaml file. The second change fixes a bug in the try_setting_streaming_options function in utils.py where the streaming option was not being set correctly. The third change is a style change that adds the model_file and model_type fields to the list of non-advanced fields in the LLMFrontendNode class in llms.py.
Gabriel Almeida
2023-05-28 17:14:49 -03:00
4848759aeb🚀 chore(Makefile): add make targets to install backend and frontend dependencies The Makefile now has two new targets, install_backend and install_frontend, which install the dependencies for the backend and frontend respectively. This makes it easier for developers to set up the project as they can now run make init to install the pre-commit hooks and all dependencies.
Gabriel Almeida
2023-05-28 16:36:57 -03:00
023df99ecc🔨 refactor(embeddings.py): move openai fields formatting to a separate method ✅ test(embeddings_template.py): add tests for openai fields formatting The openai fields formatting is now done in a separate method, which improves the readability and maintainability of the code. Tests were added to ensure that the formatting is done correctly.
Gabriel Almeida
2023-05-28 16:18:33 -03:00
Hotfix: fix bug on refresh and and for sending files to backend (#384)
Gabriel Luiz Freitas Almeida
2023-05-28 12:01:10 -03:00
c4159f3af4🐛 fix(utilities.py): use ast.literal_eval instead of eval to improve security 🐛 fix(GenericNode): add semicolon to console.log statement The use of eval in the code can be a security risk as it can execute arbitrary code. Using ast.literal_eval instead of eval is a safer alternative as it only evaluates a subset of Python expressions. The semicolon was added to the console.log statement to improve code consistency.
Gabriel Almeida
2023-05-28 11:55:00 -03:00
e2345dbe1dMerge remote-tracking branch 'origin/dev' into FileSizeFix
Gabriel Almeida
2023-05-28 11:16:47 -03:00
129088d61ehotfix for file nodes and save on localStorage
anovazzi1
2023-05-28 10:49:23 -03:00
af2a8b743eadded clone deep to saveFlow
anovazzi1
2023-05-28 10:34:39 -03:00
36910ff187chore: removed not needed inputDirectoryComponent
Gabriel Ferreira Rosalino
2023-05-28 02:13:24 -03:00
b16b9d687bfeat: SlackDirectoryLoader
Gabriel Ferreira Rosalino
2023-05-28 02:10:31 -03:00
209e31da26feat: adds NotionDirectoryLoader
Gabriel Ferreira Rosalino
2023-05-28 02:05:32 -03:00
fa9a3a210b🐛 fix(base.py): change condition to check if content is empty instead of None The previous condition was checking if the content was None, but it should check if it is empty. This change fixes the error message to be more accurate.
Gabriel Almeida
2023-05-27 23:39:05 -03:00
a758f48b88🐛 fix(chains.py): set prompt field as required when value is None The prompt field was previously set as not required when no value was provided, but this is not the intended behavior. The prompt field should always be required, even if the default prompt is used. This commit fixes the issue by setting the required attribute to True when the value is None.
Gabriel Almeida
2023-05-27 18:16:36 -03:00
6f8b434f68🔧 chore(llms.py): add format_openai_field method to format OpenAI field display names The format_openai_field method formats the display name of fields that contain the string "openai" in their name. It capitalizes the first letter of "OpenAI", replaces underscores with spaces, and replaces "Api" with "API". This improves the readability and consistency of the display names of OpenAI fields.
Gabriel Almeida
2023-05-27 17:58:00 -03:00
3436a713c2🚀 feat(pyproject.toml): add jina and sentence-transformers dependencies 🚀 feat(config.yaml): add HuggingFaceEmbeddings to embeddings The Jina and sentence-transformers dependencies were added to the project to improve the functionality of the application. The HuggingFaceEmbeddings was added to the embeddings in the config.yaml file to improve the quality of the embeddings used in the application.
Gabriel Almeida
2023-05-27 17:19:09 -03:00
bf0ab14f67🎨 style(promptComponent, textAreaComponent): fix indentation and whitespace The changes in these files are purely cosmetic, fixing indentation and whitespace to improve code readability.
Gabriel Almeida
2023-05-27 17:04:12 -03:00
f774cc6361🐛 fix(Makefile): update ruff command to fix all files in the directory The ruff command was updated to fix all files in the directory instead of just the ones that have the I issue. This ensures that all files are properly formatted.
Gabriel Almeida
2023-05-27 17:00:44 -03:00
41670bc43f🐛 fix(chat_manager.py): change filter parameter name to filter_messages for clarity The filter parameter name was ambiguous and could be interpreted in different ways. Renaming it to filter_messages makes it clear that it is used to filter chat messages.
Gabriel Almeida
2023-05-27 16:58:11 -03:00
Add First Version of Generic Modal Input Model (#369)
Gabriel Luiz Freitas Almeida
2023-05-27 16:54:26 -03:00
e0364833a9🔥 refactor(chat_manager.py): rename filter parameter to filter_messages for clarity 🔥 refactor(custom.py): remove unused import of SQL_FORMAT_INSTRUCTIONS 🔥 refactor(custom_lists.py): remove unused import of SQLDatabase and utility_type_to_cls_dict 🔥 refactor(utilities/base.py): remove unused import of utility_type_to_cls_dict 🔥 refactor(utils/util.py): remove unused function build_template_from_parameters The changes made are mostly removing unused imports and renaming a parameter for clarity. The import of SQL_FORMAT_INSTRUCTIONS was removed as it was not being used. The function build_template_from_parameters was removed as it was not being used.
Gabriel Almeida
2023-05-27 16:53:57 -03:00
a5b966f42eFormatting
Gabriel Almeida
2023-05-27 16:33:49 -03:00
cc785af652🐛 fix(base.py): import UtilitiesFrontendNode from the correct module ✨ feat(base.py): add support for SQLDatabase utility and filter utilities according to settings.utilities 🎨 style(frontend_node/base.py): add display_name to fields 🎨 style(frontend_node/utilities.py): format field values and types The import statement for UtilitiesFrontendNode was incorrect, causing an import error. The import statement was corrected to import from the correct module.
Gabriel Almeida
2023-05-27 16:32:56 -03:00
7da8c0ef92chore: refactor of template, frontend_node and field This will improve the readability of the code and maintainability.
Gabriel Almeida
2023-05-27 15:56:46 -03:00
35dce224d7📝 docs(nodes.py): update SQLAgentNode description to reflect its new implementation The description of the SQLAgentNode has been updated to reflect its new implementation, which now constructs a SQL agent from an LLM and tools instead of a Vector Store Router. This change was made to improve the accuracy of the description and to better reflect the functionality of the node.
Gabriel Almeida
2023-05-27 14:24:19 -03:00
🔨 refactor(base.py): refactor FrontendNode.format_field() method to improve readability and maintainability (#363)
Gabriel Luiz Freitas Almeida
2023-05-27 14:10:38 -03:00
12ca5c9b88first version of generic modal
Cristhian Zanforlin Lousa
2023-05-27 13:37:22 -03:00
9e6c4f8d57🔧 chore(CONTRIBUTING.md): reorganize and clarify instructions for local development The commit reorganizes the instructions for local development in CONTRIBUTING.md to make them clearer and more concise. It also adds a section on setting up pre-commit hooks to ensure consistent code formatting. Additionally, it updates the instructions for running the backend and frontend to use the make command for consistency and ease of use.
Gabriel Almeida
2023-05-27 13:09:17 -03:00
a7749323e4🔧 chore(frontend): add prettier formatting script to package.json The format script has been added to the package.json file in the frontend directory. This script uses prettier to format all files with the extensions .js, .jsx, .ts, .tsx, .json, and .md in the src directory. This ensures that the codebase is consistent and follows a standard formatting style.
Gabriel Almeida
2023-05-27 13:03:25 -03:00
47f440066f🔥 chore(Makefile): remove pre-push hook installation The pre-push hook installation command was removed from the Makefile. This was done to avoid conflicts with other hooks that may be installed in the future.
Gabriel Almeida
2023-05-27 13:01:58 -03:00
276a06976dFormatting
Gabriel Almeida
2023-05-27 13:01:20 -03:00
a096e83474🚀 chore(lint.yml): rename job from 'build' to 'lint' for clarity The job was renamed from 'build' to 'lint' to better reflect its purpose of running linters and code quality checks.
Gabriel Almeida
2023-05-27 13:00:28 -03:00