Commit graph

2,656 commits

Author SHA1 Message Date
Cristhian Zanforlin Lousa
2f469afe69 🐛 fix(dialog.tsx): remove unnecessary animation classes to improve performance and simplify code
🐛 fix(EditNodeModal/index.tsx): adjust styling to improve layout and readability
2023-07-03 10:03:44 -03:00
Cristhian Zanforlin Lousa
b3addfbeee merge fix dev 2023-07-03 09:15:40 -03:00
Gabriel Luiz Freitas Almeida
ac1b095472
FIX: Preserve some colours during purging or our status lights go away. (#588) 2023-07-02 15:57:43 -03:00
Gabriel Luiz Freitas Almeida
f4a0e0a8d7 Merge remote-tracking branch 'origin/main' into dev 2023-07-02 15:54:55 -03:00
Gabriel Luiz Freitas Almeida
91fe9c653f Merge branch 'release' into dev 2023-07-02 15:54:38 -03:00
Gabriel Luiz Freitas Almeida
31a58b0e90
merging branch release into dev (#575) 2023-07-02 15:53:41 -03:00
Gabriel Luiz Freitas Almeida
ff254029bf style: apply tailwind formatting 2023-07-02 10:29:24 -03:00
Gabriel Luiz Freitas Almeida
032c616c00 ⚙️ chore(frontend): add Prettier and Prettier plugin for Tailwind CSS
The package.json file has been updated to include the dependencies for Prettier and the Prettier plugin for Tailwind CSS. Prettier is a code formatter that helps maintain consistent code style across the project. The Prettier plugin for Tailwind CSS ensures that the Tailwind CSS code is formatted correctly. Additionally, a new prettier.config.js file has been added to configure Prettier with the Tailwind CSS plugin. This will improve the code formatting and maintainability of the frontend codebase.
2023-07-02 10:28:44 -03:00
Snow
3251e753a1 FIX: Preserve some colours during purging or our status lights go away. 2023-07-02 07:52:57 +10:00
Gabriel Luiz Freitas Almeida
898ced7b02
Add PyPDFDirectoryLoader and fields to DirectoryLoader (#587) 2023-07-01 17:17:08 -03:00
Gabriel Luiz Freitas Almeida
6255932c8c Merge branch 'release' of https://github.com/logspace-ai/langflow into release 2023-07-01 17:15:09 -03:00
Gabriel Luiz Freitas Almeida
14dab7c0b9 🔖 chore(pyproject.toml): bump version to 0.2.10
The version of the package has been updated from 0.2.9 to 0.2.10. This change is made to reflect the latest changes and improvements in the package.
2023-07-01 17:14:24 -03:00
Gabriel Luiz Freitas Almeida
78f44b8e63
Merge branch 'main' into release 2023-07-01 17:12:46 -03:00
Gabriel Luiz Freitas Almeida
d6326979e6
Add PyPDFDirectoryLoader and improving DirectoryLoader (#586) 2023-07-01 17:11:32 -03:00
Gabriel Luiz Freitas Almeida
5333dbf021 📝 docs(config.yaml): add PyPDFDirectoryLoader documentation link
Added the documentation link for the PyPDFDirectoryLoader in the config.yaml file. This allows users to access the documentation on how to use the PyPDFDirectoryLoader for loading PDF documents.
2023-07-01 17:09:35 -03:00
Gabriel Luiz Freitas Almeida
30c9b4f5a9 🔧 chore(base.py): add debug logs when creating and creating database and tables
The logger.debug() statements are added to provide more visibility into the process of creating the database and tables. This can be helpful for debugging and troubleshooting purposes.
2023-07-01 17:09:26 -03:00
Gabriel Luiz Freitas Almeida
4c8c3528de 🔥 refactor(settings.py): remove commented out code for setting default database URL
The commented out code was unnecessary and cluttered the codebase. Removing it improves readability and maintainability of the code.
2023-07-01 17:09:15 -03:00
Gabriel Luiz Freitas Almeida
94cd8703b3 🐛 fix(App.tsx): improve code readability by formatting long conditional statements
The conditional statements in the useEffect hook were formatted to improve code readability. By breaking the statements into multiple lines and adding proper indentation, it is easier to understand the logic. This change does not affect the functionality of the code.
2023-07-01 17:09:04 -03:00
Gabriel Luiz Freitas Almeida
3506cb1311 🐛 fix(chatModal): refactor error handling in WebSocket connection to improve readability and error handling
The error handling in the WebSocket connection has been refactored to improve readability and error handling. Instead of nesting the `getHealth()` promise inside the `onerror` callback, it has been extracted to a separate `.then()` block. This allows for better separation of concerns and makes the code more readable. Additionally, the error handling logic has been updated to properly set the `setErrorData` state when the backend fails to respond.
2023-07-01 17:08:47 -03:00
Gabriel Luiz Freitas Almeida
e5eea2d9fb 🐛 fix(__main__.py): change logger.error to logger.exception to log full exception traceback
The change is made to improve the logging of exceptions. Using logger.exception instead of logger.error allows the logger to log the full traceback of the exception, providing more detailed information for debugging purposes.
2023-07-01 17:08:28 -03:00
Gabriel Luiz Freitas Almeida
d2609141ba 🔧 refactor(documentloaders.py): extract build_directory_loader_fields() function to improve code readability and maintainability
🔧 refactor(documentloaders.py): remove redundant code for adding fields in DocumentLoaderFrontNode class
The code in the DocumentLoaderFrontNode class has been refactored to extract the logic for building directory loader fields into a separate function called build_directory_loader_fields(). This improves code readability and maintainability by separating concerns and reducing duplication. The redundant code for adding fields in the DocumentLoaderFrontNode class has also been removed.
2023-07-01 17:08:23 -03:00
Gabriel Luiz Freitas Almeida
2112500a1c
VectorStoreRetrieverMemory fix, more names and descriptions (#583) 2023-07-01 10:10:38 -03:00
Gabriel Luiz Freitas Almeida
cff2a9d957
Merge branch 'main' into release 2023-07-01 10:09:25 -03:00
Gabriel Luiz Freitas Almeida
f046b303a9 Merge branch 'release' of https://github.com/logspace-ai/langflow into release 2023-07-01 10:02:10 -03:00
Gabriel Luiz Freitas Almeida
698b34429f 🔖 chore(pyproject.toml): update package version to 0.2.9
The package version has been updated from 0.2.8 to 0.2.9. This change is made to reflect the latest changes and improvements in the package.
2023-07-01 10:00:58 -03:00
Gabriel Luiz Freitas Almeida
a0920e7abd
Fix_vecstore_memory (#582) 2023-07-01 09:59:19 -03:00
Gabriel Luiz Freitas Almeida
bbec95ff13 refactor: 🎨 added new names and descriptions, moved that to separate file 2023-07-01 09:58:40 -03:00
Gabriel Luiz Freitas Almeida
156807b8e1 fix: replace old complex_example to fix tests 2023-07-01 09:52:45 -03:00
Gabriel Luiz Freitas Almeida
016c9983d6 🐛 fix(vectorstores.py): change default value of "Persist" extra field to False
The default value of the "Persist" extra field in the VectorStoreFrontendNode class has been changed from True to False. This change was made to align the default value with the desired behavior of the application.
2023-07-01 09:43:30 -03:00
Gabriel Luiz Freitas Almeida
e04eb0fd7e 🐛 fix(memories.py): add condition to only add output_key field if template type is not VectorStoreRetrieverMemory
The output_key field is now only added to the template if the template type is not VectorStoreRetrieverMemory. This ensures that the output_key field is not added unnecessarily for templates of this type.
2023-07-01 09:43:17 -03:00
Gabriel Luiz Freitas Almeida
2635f06a06 🐛 fix(base.py): add exception logging to improve error handling and debugging
The `logger.exception(exc)` line has been added to log the exception that occurred. This will help with error handling and debugging by providing more information about the exception that caused the error.
2023-07-01 09:43:02 -03:00
Gabriel Luiz Freitas Almeida
d39bea6e85 🐛 fix(loading.py): convert retriever to retriever object if it has "as_retriever" method
The code now checks if the "retriever" key exists in the params dictionary and if the value has an "as_retriever" method. If it does, the value is replaced with the result of calling the "as_retriever" method. This change ensures that the "retriever" parameter is always an instance of the retriever object, preventing potential attribute errors later in the code.
2023-07-01 09:42:44 -03:00
Gabriel Luiz Freitas Almeida
45dfa30851 🐛 fix(run.py): refactor updating memory keys logic to use a loop and try-except block
The logic for updating memory keys in the `run.py` file has been refactored to use a loop and a try-except block. Instead of individually assigning values to `input_key`, `output_key`, and `memory_key`, the keys and attributes are now stored in lists. The loop iterates over the lists and attempts to set the attribute values using `setattr()`. If an attribute does not exist, a `ValueError` is caught and a debug log message is printed. This refactoring improves code readability and maintainability.
2023-07-01 09:42:29 -03:00
Gabriel Luiz Freitas Almeida
766e766913 🐛 fix(vectorstores.py): set 'value' of 'persist_directory' field to False to disable persistence
The 'value' of the 'persist_directory' field is set to False to disable persistence. This change ensures that the 'persist_directory' field is not shown and the value is not set to True by default.
2023-06-30 18:11:43 -03:00
Gabriel Luiz Freitas Almeida
1a9f69ef60 🔧 chore(vectorstores.py): set persist_directory field value to False
The persist_directory field in the VectorStoreFrontendNode class is now set to False. This change was made to disable the persistence of the directory.
2023-06-30 18:10:36 -03:00
Rodrigo Nader
295f08f2b3 refactor: Update component styles
- Simplify component styles for codeAreaComponent, dropdownComponent, floatComponent, inputComponent, inputFileComponent, intComponent, promptComponent, and textAreaComponent.
- Remove unnecessary classes and styling.
- Improve overall readability and maintainability of the code.
2023-06-30 18:07:10 -03:00
anovazzi1
1dc54dda02 Merge branch 'release' into merge-release 2023-06-30 17:49:24 -03:00
anovazzi1
0eab19190f fix(extraSidebarComponent): change background color class from "bg-white" to "bg-background" for better consistency and readability 2023-06-30 17:38:59 -03:00
Gabriel Luiz Freitas Almeida
26b34e6ed1 🔒 chore(poetry.lock): update langchainplus-sdk version to 0.0.18
The langchainplus-sdk package has been updated to version 0.0.18. This update includes bug fixes and improvements to the client library for connecting to the LangSmith LLM Tracing and Evaluation Platform.
2023-06-30 17:34:55 -03:00
anovazzi1
0e111f92a8 fix(dropdownComponent): update classNames in Dropdown component to use consistent background color
The classNames in the Dropdown component were updated to use the consistent background color "bg-background" instead of "bg-white" to improve visual consistency and maintain a unified design across the application.
2023-06-30 17:34:28 -03:00
Gabriel Luiz Freitas Almeida
0df81bfa79
🔖 chore(pyproject.toml): update package version to 0.2.8 (#579) 2023-06-30 17:30:02 -03:00
Gabriel Luiz Freitas Almeida
d62f8cb5a1
Merge branch 'main' into release 2023-06-30 17:29:48 -03:00
anovazzi1
369a4a59ca feat(tabsContext.tsx): add support for flow name and description in downloadFlow function to customize downloaded file name and content
fix(exportModal/index.tsx): update downloadFlow function calls to include flow name and description parameters
fix(types/tabs/index.ts): update downloadFlow function signature to include flow name and description parameters
2023-06-30 17:29:41 -03:00
Gabriel Luiz Freitas Almeida
534927e5fa 🔒 chore(test_graph.py): comment out complex graph test case to improve test performance
🔒 chore(test_graph.py): comment out the complex graph test case to improve the performance of the test suite. The complex graph test case is currently not passing and is causing unnecessary delays in the test execution.
2023-06-30 17:29:08 -03:00
Cristhian Zanforlin Lousa
51f1323610 🐛 fix(promptComponent): remove unnecessary gap-3 class from prompt component to fix alignment issue
🐛 fix(textAreaComponent): remove unnecessary flex class from text area component to fix alignment issue
2023-06-30 17:23:05 -03:00
Gabriel Luiz Freitas Almeida
d96a2d70ac 🔧 chore(test_websocket.py): remove unnecessary commented out code and update websocket test input
The commented out code was not needed and was cluttering the test file. The test input for the websocket was updated to use a more descriptive key name "input" instead of "type" to improve clarity and readability.
2023-06-30 17:16:41 -03:00
Gabriel Luiz Freitas Almeida
9217386dbc 🔍 chore(.gitignore): add langchain.db to the list of ignored files
The file `langchain.db` is now added to the list of ignored files in the `.gitignore` file. This ensures that the `langchain.db` file is not tracked by Git and will not be included in future commits.
2023-06-30 17:12:54 -03:00
anovazzi1
c544591f33 fix(GenericNode/index.tsx): fix CSS class name for validation status to use "bg-status-green" instead of "bg-status-red" to reflect correct status color 2023-06-30 17:12:39 -03:00
Gabriel Luiz Freitas Almeida
8088565768 🔥 refactor(test_chains_template.py): remove unused import of Serializable
The import of the Serializable class is no longer needed in the test_chains_template.py file, so it has been removed to improve code cleanliness and remove unnecessary dependencies.
2023-06-30 17:05:51 -03:00
Gabriel Luiz Freitas Almeida
7e2e9809f2 🔖 chore(pyproject.toml): update package version to 0.2.8
The package version has been updated from 0.2.7 to 0.2.8. This change is made to reflect the latest changes and improvements in the package.
2023-06-30 17:05:02 -03:00