Commit graph

1,754 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
e01f1b44da
Added HuggingFaceHub and fixed the stream parameter + added summariza… (#435) 2023-06-02 19:23:57 -03:00
Gabriel Luiz Freitas Almeida
00100ff9f1 🔖 chore(pyproject.toml): bump up version to 0.0.81
The version number in the pyproject.toml file has been updated from 0.0.80 to 0.0.81. 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-06-02 19:16:09 -03:00
GMS
858b88240e Set text-generation as a default task value 2023-06-02 22:16:43 +01:00
Cristhian Zanforlin Lousa
1bd3303c52 Change the delay to open to instant 2023-06-02 17:49:53 -03:00
Gabriel Luiz Freitas Almeida
b754c8b490 Merge branch 'jimwhite-anthropic' into dev 2023-06-02 17:43:19 -03:00
Cristhian Zanforlin Lousa
c8665ef422 Fixing css formatting codacy 2023-06-02 17:35:30 -03:00
Cristhian Zanforlin Lousa
f0ca7eeac8 formatting with codacy 2023-06-02 17:29:22 -03:00
GMS
90d2517fc1 Added HuggingFaceHub and fixed the stream parameter + added summarization as a task option 2023-06-02 21:22:21 +01:00
Cristhian Zanforlin Lousa
bd7cb06e91 merge fix 2023-06-02 17:17:51 -03:00
Cristhian Zanforlin Lousa
02cb94709d Adding shad tooltip and grouping by class on edges 2023-06-02 17:15:59 -03:00
Jim White
cce41189e9 Trim too long comments about Anthropic models. 2023-06-02 12:18:38 -07:00
Jim White
07afc08129 Add model names for Anthropic and add ChatAnthropic (preferred over the deprecated Anthropic LLM). 2023-06-02 12:08:57 -07:00
Gabriel Luiz Freitas Almeida
df3cdb90b7 🔨 refactor(types.py): reorder class definitions to match the order of their usage in the code
The order of the class definitions in the file has been changed to match the order of their usage in the code. This improves the readability of the code and makes it easier to understand the relationships between the classes. No functionality has been changed.
2023-06-02 14:21:38 -03:00
anovazzi1
430043098d fix dropdown value with wrong color 2023-06-02 14:15:06 -03:00
Gabriel Luiz Freitas Almeida
534f47f153 🔨 refactor(types.py): import flatten_list function from graph.utils module
This commit simply imports the flatten_list function from the graph.utils module to be used in the AgentVertex class. This improves the readability of the code and reduces the number of lines of code.
2023-06-02 14:14:47 -03:00
Gabriel Luiz Freitas Almeida
9517ffe3b3 Merge remote-tracking branch 'origin/dev' into fix_toolkits 2023-06-02 12:56:02 -03:00
Gabriel Luiz Freitas Almeida
e21447aad8
refactor: change Node to Vertex (#426) 2023-06-02 12:16:55 -03:00
Gabriel Luiz Freitas Almeida
b7286afd32 🎨 style(types.py): improve readability of return statement in TextSplitterVertex
The return statement in TextSplitterVertex was improved to be more readable by adding a new line before the Documents field. This makes it easier to read and understand the output of the function.
2023-06-02 12:14:03 -03:00
Gabriel Luiz Freitas Almeida
b75892855f
🚀 feat(langflow): add PythonFunctionTool to the custom tools (#417) 2023-06-02 12:11:24 -03:00
Gabriel Luiz Freitas Almeida
73e07be0c7
Merge branch 'dev' into python_function_tool 2023-06-02 12:11:02 -03:00
anovazzi1
7d49319696 saving darkMode on localStorage 2023-06-02 11:23:55 -03:00
Jim White
4f152bc7ef Fix view for regular Anthropic logo 2023-06-01 23:28:44 -07:00
Jim White
8a049187df Add Anthropic to LLMs including an icon. 2023-06-01 22:55:02 -07:00
Cristhian Zanforlin Lousa
0e234030a9 Starting migration for shadUI 2023-06-01 21:10:27 -03:00
Cristhian Zanforlin Lousa
56ca610a79 Starting migration to shadUI 2023-06-01 21:09:50 -03:00
anovazzi1
730fe45518
Bringing the menu options opened on search (#427)
This pull request introduces a new feature that enhances the search
functionality by displaying menu options when performing a search.
Currently, the search results only present a list of relevant items, but
with this feature, users will have quick access to additional actions
and functionalities directly from the search results.
2023-06-01 21:03:25 -03:00
Jacob Lee
76bbf62475 Surface an error message when a flow has an unknown node type.
This improves the user experience for issues like #283.
2023-06-01 18:04:56 -05:00
Cristhian Zanforlin Lousa
da5b15fa68 Bringing the menu options opened on search 2023-06-01 17:47:27 -03:00
Gabriel Luiz Freitas Almeida
0cef4bd818 refactor: change Node to Vertex 2023-06-01 15:37:11 -03:00
Gabriel Luiz Freitas Almeida
5b5eea9895 🚀 feat(langflow): reorganize graph package to improve modularity and maintainability
The changes include:
- Moved the `Edge` class to a new `edge` package
- Moved the `Graph` class to a new `graph` package
- Moved the `Node` class to a new `node` package
- Moved the `VectorStoreNode` class to the `node/types.py` module
- Moved the `Edge`, `Graph`, and `Node` classes to their respective `base.py` modules
- Added an `__init__.py` file to each package to allow for importing of classes
- Added a `constants.py` module to the `graph` package to store constants used in the `Graph` class
- Refactored the `Graph` class to use the new `Node` and `Edge` classes
- Refactored the `Graph` class to use a dictionary to map node types to their respective classes
- Refactored the `Graph` class to remove invalid nodes from the graph
- Refactored the `Graph` class to handle the LLM node within the graph
- Refactored the `Graph` class to build the nodes before building the edges
- Refactored the `Graph` class to use the `get_node` method to find nodes by id
- Refactored the `Graph` class to use the `get_node_neighbors` method to find the neighbors of a node
- Refactored the `Graph` class to use the `get_children_by_node_type` method to find the children of a node based on the node type

These changes improve the modularity and maintainability of the `langflow` package by separating the classes into their respective packages and modules. The changes also make it easier to add new node types to the `Graph` class by using a dictionary to map node types to their respective classes.

🚀 feat(node): add Node class to represent a node in the graph
🚀 feat(constants.py): add DIRECT_TYPES constant to represent direct types in a node's template
The Node class represents a node in the graph and is responsible for parsing the data and building the module. The DIRECT_TYPES constant is a list of direct types in a node's template.

🚧 chore(types.py): add import statements for typing and Node classes
This commit adds import statements for the typing module and the Node class to the types.py file. This is necessary for the code to run properly as it uses these classes and modules.

🚧 chore(loading.py): remove unnecessary import statement
This commit removes an unnecessary import statement from the loading.py file. The import statement was causing a circular import error and was not needed for the code to run properly.

🚧 chore(run.py): update import statement for Graph class
This commit updates the import statement for the Graph class in the run.py file. The import statement was outdated and was causing an import error.

🚧 chore(conftest.py): update import statement for Graph class
This commit updates the import statement for the Graph class in the conftest.py file. The import statement was outdated and was causing an import error.

🚧 chore(test_graph.py): update import statements for Node and Edge classes
This commit updates the import statements for the Node and Edge classes in the test_graph.py file. The import statements were outdated and were causing import errors.
2023-06-01 15:07:56 -03:00
Deepankar Mahapatro
4ba881d0e1
build: update lcserve version to support public (#424) 2023-06-01 11:09:55 +05:30
Deepankar Mahapatro
2285304e09 build: update lcserve version to support public 2023-06-01 10:56:39 +05:30
Deepankar Mahapatro
0a0dc673c1
build: push lcserve image as public (#423) 2023-06-01 10:10:46 +05:30
Deepankar Mahapatro
a9e1fb4eb7 build: push lcserve image as public 2023-06-01 10:00:56 +05:30
Cristhian Zanforlin Lousa
585e94285d Adding title and icon of the parent menu on hover of the handle 2023-06-01 00:27:01 -03:00
anovazzi1
4c901ec022
Changing the mouse cursor on Canva's React Flow (#420)
## Description

This pull request introduces a new feature that allows users to change
the mouse cursor on Canva's React Flow. By updating the CSS and
JavaScript code, the cursor behavior can be modified to provide a
customized experience for users.

## Motivation

The ability to change the mouse cursor provides a way to enhance user
interaction and personalize the user experience within Canva's React
Flow. This feature can be particularly useful for applications or
websites that require specific cursor styles to match the overall design
or functionality.
2023-05-31 23:37:20 -03:00
Cristhian Zanforlin Lousa
2ee0244834 fixing identation warnings spaces - new 2023-05-31 22:20:12 -03:00
Cristhian Zanforlin Lousa
f27d067609 fixing identation warnings spaces 2023-05-31 22:16:16 -03:00
Cristhian Zanforlin Lousa
344b94f9b5 fixing warning identation 2023-05-31 22:06:49 -03:00
Cristhian Zanforlin Lousa
d9cae6b211 fixing identation warnings 2023-05-31 22:00:03 -03:00
Gabriel Luiz Freitas Almeida
08d981822b
Add Chat Icon Animation to the Last AI Message (#418) 2023-05-31 21:54:37 -03:00
Cristhian Zanforlin Lousa
9e4f898f54 Changing the mouse cursor on Canva's React Flow 2023-05-31 21:38:06 -03:00
Cristhian Zanforlin Lousa
6332c4c084 Changing the icon to move just in the last message on chat 2023-05-31 21:22:42 -03:00
Cristhian Zanforlin Lousa
893dc22fc4 Change the icon to move just in the last message 2023-05-31 21:21:51 -03:00
Cristhian Zanforlin Lousa
c33d7b9482 Fixing border edit icon 2023-05-31 21:03:27 -03:00
Cristhian Zanforlin Lousa
6d40575426 Adding tooltip and displaying just icons 2023-05-31 20:40:56 -03:00
Cristhian Zanforlin Lousa
ccd8652253 Removing the copy icon 2023-05-31 19:05:26 -03:00
Cristhian Zanforlin Lousa
14f69d8e56 Removing debugger from code 2023-05-31 16:48:43 -03:00
Cristhian Zanforlin Lousa
8f28531010 make format 2023-05-31 16:46:20 -03:00
Cristhian Zanforlin Lousa
d5cd5bfbd7 Adding githooks fold 2023-05-31 16:45:14 -03:00