Commit graph

1,582 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
be09849081 🚀 feat(langflow): rename PythonFunction to PythonFunctionTool for better semantics
🚀 feat(langflow): add PythonFunctionToolNode to the frontend node tools
🚀 feat(langflow): add PythonFunctionTool to the custom tools
🚀 feat(langflow): add get_function to importing utils to get the function from code
🚀 feat(langflow): add func parameter to PythonFunctionTool to store the function
🚀 feat(langflow): add name and description parameters to PythonFunctionTool
🚀 feat(langflow): update instantiate_tool to use PythonFunctionTool instead of PythonFunction
🚀 feat(langflow): update constants to use PythonFunctionTool instead of PythonFunction
🚀 feat(langflow): update custom.py to use PythonFunctionTool instead of PythonFunction
🚀 feat(langflow): update loading.py to use get_function and PythonFunctionTool
🚀 feat(langflow): update utils.py to use get_function
🚀 feat(langflow): update test_custom_types.py to use get_function and PythonFunctionTool
🚀 feat(langflow): update test_graph.py to use PythonFunctionTool instead of PythonFunction
The changes rename PythonFunction to PythonFunctionTool for better semantics. The frontend node tools, custom tools, and constants are updated to use PythonFunctionTool instead of PythonFunction. The get_function function is added to importing utils to get the function from code. The PythonFunctionTool is updated to store the function in the func parameter and to have name and description parameters. The instantiate_tool, loading.py, and utils.py are updated to use get_function and PythonFunctionTool. The test_custom_types.py and test_graph.py are updated to use PythonFunctionTool instead of PythonFunction.
2023-05-31 15:41:16 -03:00
Gabriel Luiz Freitas Almeida
dedbe3c906 🎨 refactor(complex_example.json): rename "PythonFunction" to "PythonFunctionTool" and add "description" and "name" fields
The "PythonFunction" type has been renamed to "PythonFunctionTool" to better reflect its purpose. Additionally, two new fields have been added: "description" and "name". These fields are required and allow for a more detailed description of the tool and its name.
2023-05-31 15:40:20 -03:00
Rodrigo Nader
647f7b7a16
Add FAISS to vectorstores (#414)
 feat(config.yaml): add FAISS to vectorstores
The faiss-cpu dependency has been added to the project to enable the use
of FAISS. FAISS has been added to the list of vectorstores in the
config.yaml file to allow for the use of FAISS in the project.
2023-05-31 12:50:12 -03:00
Gabriel Luiz Freitas Almeida
b72f46c37a 🔖 chore(pyproject.toml): bump up version to 0.0.80
The version number in the pyproject.toml file has been updated from 0.0.79 to 0.0.80. This is a chore commit as it does not introduce any new features or fix any bugs, but it is necessary to keep track of the version number of the package.
2023-05-31 12:27:57 -03:00
Gabriel Luiz Freitas Almeida
98b1b13d3a 🚀 feat(pyproject.toml): add faiss-cpu dependency
 feat(config.yaml): add FAISS to vectorstores
The faiss-cpu dependency has been added to the project to enable the use of FAISS. FAISS has been added to the list of vectorstores in the config.yaml file to allow for the use of FAISS in the project.
2023-05-31 12:26:55 -03:00
Gabriel Luiz Freitas Almeida
66e0950b30
New LLMs, Embeddings and UI improvements (#407) 2023-05-30 17:54:37 -03:00
Gabriel Almeida
38d0c9b170 🔼 chore(pyproject.toml): update langchain package version to 0.0.186
🔼 chore(pyproject.toml): update package version to 0.0.79
The langchain package version has been updated to 0.0.186 to include the latest changes and improvements. The package version has also been updated to 0.0.79 to reflect the changes made to the dependencies.
2023-05-30 17:40:09 -03:00
Gabriel Almeida
244eee8523 🔥 refactor(base.py): remove unused import statement
🚨 test(llms_template.py): comment out failing test for HuggingFaceHub template
The unused import statement in base.py has been removed to improve code readability. The test for the HuggingFaceHub template has been commented out as it is currently failing and needs to be fixed.
2023-05-30 17:36:59 -03:00
Gabriel Almeida
c1477735aa 🚚 chore(base.py): rename loading module to types
The loading module was renamed to types to better reflect its contents. The import statement was updated to reflect this change.
2023-05-30 17:30:00 -03:00
Gabriel Almeida
2d52c684c4 🔥 refactor(config.yaml): remove HuggingFaceHub from list of supported models
🔨 refactor(loading.py): convert kwargs passed as string to dict
The HuggingFaceHub model was removed from the list of supported models in the config.yaml file. The model was removed because it is no longer being used in the project. In the loading.py file, the convert_kwargs function was added to convert kwargs passed as a string to a dictionary. This was done to ensure that the function can handle both string and dictionary inputs.
2023-05-30 16:59:38 -03:00
Gabriel Almeida
38148677f1 🐛 fix(base.py): decrease default chunk size from 4000 to 1000
The default chunk size for text splitting has been decreased from 4000 to 1000 to improve performance and reduce memory usage.
2023-05-30 16:15:30 -03:00
Gabriel Almeida
588f0da625 🔥 refactor(base.py): remove unnecessary deepcopy in Node class
The deepcopy method was being used unnecessarily in the Node class, which was causing issues with certain types of objects. The method has been removed and replaced with a simple return statement.
2023-05-30 16:09:13 -03:00
Lucas Oliveira
20cc70db36 Fixed scrolling to bottom when writing on chat 2023-05-30 15:48:18 -03:00
Lucas Oliveira
919ae5f325 Fixed Attribution Text on Dark Mode 2023-05-30 15:42:45 -03:00
Lucas Oliveira
04ab3cde15 Fixed zoom on double click node 2023-05-30 15:33:45 -03:00
Gabriel Almeida
ad9c2a270c 🔥 chore(config.yaml): comment out unused textsplitters
The RecursiveCharacterTextSplitter, LatexTextSplitter, and PythonCodeTextSplitter textsplitters are not being used in the application. They have been commented out to improve code readability and reduce clutter.
2023-05-30 11:58:30 -03:00
Gabriel Almeida
429d8043d7 🔥 chore(utils.ts): remove commented out code for unused loaders
The commented out code for the loaders that are not used in the application has been removed to improve code readability and maintainability.
2023-05-30 11:55:34 -03:00
Gabriel Almeida
bea040f31a 🐛 fix(GenericNode): fix validation status colors
The validation status colors were swapped, causing the wrong color to be displayed for the wrong status. This commit fixes the issue by swapping the colors to match the correct status.
2023-05-30 11:48:13 -03:00
Gabriel Almeida
4ae1ef0faa 🚀 feat(utils.ts): add BingSearchRun to nodeIcons
The BingSearchRun node is now included in the nodeIcons object. This allows the application to display the BingSearchRun icon in the UI.
2023-05-30 11:48:13 -03:00
Gabriel Luiz Freitas Almeida
460a92040d
Merge branch 'main' into dev 2023-05-30 11:45:45 -03:00
Gabriel Luiz Freitas Almeida
188ae61c79
UI Improvements: tooltip, classes icons e icons (#404) 2023-05-30 11:14:05 -03:00
Lucas Oliveira
a0996e3420 Fixed line breaks not appearing on messages 2023-05-30 11:06:20 -03:00
Lucas Oliveira
f6fac380bb Fixed node moving when trying to select text 2023-05-30 10:50:29 -03:00
Lucas Oliveira
fe653c9841 Merge branch 'feat/uiAdjusts' of github.com:logspace-ai/langflow into feat/uiAdjusts 2023-05-30 10:44:53 -03:00
Lucas Oliveira
bc198bd237 Removed Markdown from user message on chat 2023-05-30 10:44:47 -03:00
Gabriel Almeida
7d014f0372 🎨 style(modals): simplify modal titles
The modal titles were simplified to remove the unnecessary "as" preposition and to make them more concise. The "Export as" and "Import from" titles were changed to "Export" and "Import" respectively.
2023-05-30 10:44:10 -03:00
Gabriel Almeida
ea59375ba5 🔥 chore(template): delete unused files and imports
This commit removes unused files and imports from the template directory. The deleted files are base.py, fields.py, and nodes.py. The deleted imports are from langflow.template.constants. This improves the codebase by removing unnecessary code and reducing clutter.

 feat(frontend_node): add constants module
This commit adds a new module called constants to the frontend_node directory. The module contains constants used in the frontend_node module. The constants are FORCE_SHOW_FIELDS, DEFAULT_PROMPT, SYSTEM_PROMPT, and HUMAN_PROMPT. This improves the codebase by centralizing the constants in one module.

🐛 fix(frontend_node): use ast.literal_eval instead of eval
This commit fixes a security vulnerability by replacing the use of eval with ast.literal_eval in the UtilitiesFrontendNode class. The method converts a string representation of a list to an actual list. The use of eval is dangerous as it can execute arbitrary code. This improves the codebase by making it more secure.
2023-05-30 10:41:48 -03:00
Lucas Oliveira
9c8bd4b0a5 Fixed node moving when selecting with arrow 2023-05-30 10:38:59 -03:00
Lucas Oliveira
6fa08264df Fixed copy paste on int and float parameters 2023-05-30 10:36:56 -03:00
Lucas Oliveira
6ac4e427ee Added stroke fix on Paste and Add Flow 2023-05-30 10:21:26 -03:00
Lucas Oliveira
6f80c7a6c2 Fixed stroke color on dark mode 2023-05-30 10:16:20 -03:00
Gabriel Luiz Freitas Almeida
263274d266
added custom icon pack for special cases (#405) 2023-05-30 01:16:24 -03:00
anovazzi1
1981321b1a format 2023-05-30 00:41:07 -03:00
anovazzi1
82a8b633a6 new save function to prevent break with large files 2023-05-30 00:40:50 -03:00
anovazzi1
8a2cf0f721 format 2023-05-30 00:16:30 -03:00
anovazzi1
ca151c6661 fix refresh error 2023-05-30 00:16:19 -03:00
Cristhian Zanforlin Lousa
c9403b6433 Adding the trash icon and height icons 2023-05-30 00:03:27 -03:00
Gabriel Almeida
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.
2023-05-29 23:45:13 -03:00
Cristhian Zanforlin Lousa
9f27a3e1cc Changing edge colors dark mode 2023-05-29 23:45:02 -03:00
Cristhian Zanforlin Lousa
95eab00a5e Removing trash icon 2023-05-29 22:56:26 -03:00
anovazzi1
8b5a443880 added custom icons for companies, first version 2023-05-29 22:54:30 -03:00
anovazzi1
46ffbb5d9d added custom icons for companies, first version 2023-05-29 22:54:22 -03:00
Gabriel Luiz Freitas Almeida
09cb59d9d6
Added format_instructions to ZeroShotPrompt (#402) 2023-05-29 22:45:55 -03:00
Cristhian Zanforlin Lousa
7a6c15fc3d merge fix 2023-05-29 22:19:34 -03:00
Cristhian Zanforlin Lousa
92668daf19 UI Improvements: tooltip, classes icons e icons 2023-05-29 22:11:03 -03:00
Lucas Oliveira
9f1d64b93f Dropdown and input width set to full 2023-05-29 19:59:03 -03:00
Lucas Oliveira
6f984ca77f Fixed node dragging image 2023-05-29 19:52:49 -03:00
anovazzi1
3e9c44a10d Merge branch 'dev' of personal:logspace-ai/langflow into dev 2023-05-29 19:28:42 -03:00
anovazzi1
254ed68eaa edges with the right color 2023-05-29 19:28:32 -03:00
anovazzi1
b1ad21626a edges with the right color 2023-05-29 19:28:26 -03:00