Commit graph

2,434 commits

Author SHA1 Message Date
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
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
Cristhian Zanforlin Lousa
73023f43d6 formatting documents 2023-06-30 13:50:21 -03:00
Cristhian Zanforlin Lousa
168a1b9e0f merging branch release into dev 2023-06-30 13:49:49 -03:00
Gabriel Luiz Freitas Almeida
683c69340b
Fix: Required input llm for module LLMChain not found (#566) 2023-06-30 10:10:07 -03:00
Gustavo Schaedler
12164ec79a
CSS Color Changes and Dark Mode Implementation - New Style Features (#572)
This pull request introduces significant style changes to the website,
focusing on CSS color modifications and the implementation of a dark
mode feature. These updates enhance the overall visual appeal and
improve user experience in different lighting environments. Below is a
detailed overview of the changes made.

Updated Color Palette: The existing color scheme has been revamped to
create a more visually appealing and cohesive design. This involved
modifying the colors used throughout the website, including background
colors, text colors, and accent colors.

Dark Mode Implementation: A new feature, dark mode, has been added to
provide users with an alternative interface that is easier on the eyes
in low-light environments. The dark mode utilizes a new set of colors
specifically designed for this mode, ensuring optimal readability and
aesthetic appeal.

CSS Classes and Selectors: New CSS classes and selectors have been
introduced to facilitate the implementation of the color changes and
dark mode feature. These classes are applied to specific elements within
the HTML structure, allowing for precise control over the appearance of
different components.
2023-06-30 00:41:27 +01:00
Cristhian Zanforlin Lousa
e95dd524a8 formatting branch 2023-06-29 19:58:34 -03:00
Cristhian Zanforlin Lousa
4039540148 🐛 fix(GenericNode): add strokeWidth property to Icon component to fix styling issue
🐛 fix(NodeModal): add strokeWidth property to Icon component to fix styling issue
🐛 fix(DisclosureComponent): add strokeWidth property to Icon component to fix styling issue
🐛 fix(extraSidebarComponent): add strokeWidth property to Icon components to fix styling issue
2023-06-29 19:51:28 -03:00
Cristhian Zanforlin Lousa
a8d7edff7a 🔧 fix(frontend): update class names and colors in singleAlertComponent and NoticeAlert components to match the new design
🔧 fix(frontend): update class names and colors in index.css to match the new design
🔧 fix(frontend): update tailwind.config.js to use the new color variable name 'status-blue' instead of 'medium-dark-blue'
2023-06-29 19:45:22 -03:00
Rodrigo Nader
9098d8cd29 remove index1 2023-06-29 18:43:05 -03:00
Rodrigo Nader
262eac0f46 Merge remote-tracking branch 'origin/dev' into new-style-features 2023-06-29 18:42:53 -03:00
Rodrigo Nader
27b17a13c2 Refactor styles and class names in multiple components, update color variables, and adjust button and control styles.
- Simplify class names in the SingleAlert component and update color variables.
- Update class names and color variables in the Dialog component.
- Update color variables in the constants file.
- Update color variables and class names in the index.css file.
- Update class names and color variables in the PageComponent file.
- Add a color variable for shared blur styles.
- Update Tailwind CSS configuration to include new color variables.

Note: These changes improve code readability and maintain color consistency throughout the application.
2023-06-29 18:39:00 -03:00
Rodrigo Nader
c0dbafe49f refactor(components): Update CSS classes in codeAreaComponent, floatComponent, intComponent, and dialog
- Update CSS classes in codeAreaComponent, floatComponent, intComponent, and dialog components to improve styling and maintain consistency.
- Replace specific color values with Tailwind CSS utility classes.
- Refactor input styles and focus styles for better user experience.
- Remove unused CSS classes from index.css.
2023-06-29 16:49:24 -03:00
Cristhian Zanforlin Lousa
a41c8552a8 🎨 style(parameterComponent): add full width to the div container for better layout consistency 2023-06-29 16:42:38 -03:00
Cristhian Zanforlin Lousa
5522b51d6b 🐛 fix(parameterComponent): add margin-top to the container divs to improve spacing between elements 2023-06-29 16:41:41 -03:00
Cristhian Zanforlin Lousa
9bf5adcd7a 🔧 chore(extraSidebarComponent/index.tsx): center align the input field in the extra sidebar component for better visual consistency 2023-06-29 15:24:01 -03:00
Gabriel Luiz Freitas Almeida
ac2e05d8cf
Fixed broken link (#568) 2023-06-29 14:31:48 -03:00
Lazy
e23f4bef1b
Fix broken link 2023-06-29 04:50:57 -04:00
Rodrigo Nader
b9e9f3ba4c refactor(frontend): Adjust styling in chatComponent, buildTrigger, dropdownComponent, and other components
- Adjusted styling in chatComponent, buildTrigger, dropdownComponent, and other components to improve visual consistency and enhance user experience.
- Updated button styles, background colors, and text colors to create a more cohesive design across the application.
- Fixed incorrect color values and replaced them with appropriate color variables from the tailwind configuration.
- Removed redundant styles and optimized the code for better maintainability.
2023-06-29 02:39:35 -03:00
Rodrigo Nader
05d2e82f2d feat: Update class names and colors in various components
- Update class names and colors in parameterComponent, GenericNode, alertDropDown, error, notice, success, buildTrigger, dropdownComponent, headerComponent, and inputListComponent to improve consistency and visual appeal.
2023-06-29 00:50:58 -03:00
Sean Javiya
e1872be728
Fix: Required input llm for module LLMChain not found
There is a recurring intermittent bug, where Chains fail to validate, with an error "Required module ____ for module ____ not found". This happens frequently for all LLMs that inherit from the LLM class (example Cohere's wrapper).

This is caused by this chunk of code.
This also explains why the bug is intermittent and not every time.
"in" is matching LLM from source_types with BaseLLM from target_reqs. Also, this doesn't need to be a nested loop, it can be done with one loop.

I'm a user of LangFlow, and a first time contributor. Thanks!
2023-06-28 17:09:58 -07:00
Gabriel Luiz Freitas Almeida
e2a7d860ae
Add CodeQL workflow (#561) 2023-06-28 18:25:21 -03:00
Jorge
9784817821 Add CodeQL workflow 2023-06-28 18:42:32 +02:00
Rodrigo Nader
4e9565e468 feat: Update styling for various components
- Updated hover and transition effects for several components
- Removed unnecessary CSS classes and styles
- Adjusted colors and text styles for better visual consistency
2023-06-28 12:54:54 -03:00
Rodrigo Nader
b14d6d4238 Refactor crash error component, header component, and main page component
- Refactored crash error component to update the background color of the reset button.
- Removed commented code in the header component.
- Imported BUTTON_DIV_STYLE constant in the main page component.
2023-06-28 12:51:05 -03:00
Rodrigo Nader
80a73f93fe Merge remote-tracking branch 'origin/dev' into new-style-features 2023-06-28 12:35:23 -03:00
Rodrigo Nader
15e1efc0a1 feat: Add new stylesheet for Switch component
Imported a new stylesheet for the Switch component to enhance its visual appearance.
2023-06-28 11:35:26 -03:00
Rodrigo Nader
17380fa2fb feat: Upgrade toggle shad component and switch UI styles
- Improved the scaling effect for the toggle shad component.
- Removed unused switch styles CSS file.
- Updated the switch UI component to have improved color styles for checked and unchecked states.
2023-06-28 01:11:24 -03:00
Gabriel Luiz Freitas Almeida
52329b36dc Merge remote-tracking branch 'origin/main' into dev 2023-06-26 14:54:53 -03:00
Gabriel Luiz Freitas Almeida
d4e01f28ef
Hotfix to AgentInitializer (#546) 2023-06-26 16:44:05 +00:00
Gabriel Luiz Freitas Almeida
644fc98271 🚀 chore(pyproject.toml): update package version to 0.2.2
The package version has been updated to 0.2.2 to reflect the changes made to the package. This is a chore commit as it does not include any functional changes to the package.
2023-06-26 13:38:00 -03:00
Gabriel Luiz Freitas Almeida
2b73f8fd5f
Merge branch 'main' into release 2023-06-26 16:36:59 +00:00
Gabriel Luiz Freitas Almeida
c51a90c537 🚀 feat(custom.py): add AgentType enum to improve readability and type safety
The `AgentType` enum is added to the `langchain.agents.custom` module to improve readability and type safety. The `InitializeAgent` class now uses the `AgentType` enum to ensure that the `agent` parameter is a valid value from the enum.
2023-06-26 13:27:05 -03:00
Rodrigo Nader
361e981d0d Refactor component styles for better visual consistency
This commit refactors the styling of some components to improve their visual consistency with the rest of the application. Specifically, it removes unnecessary background and text color properties and adjusts classes for spacing and layout. These changes will enhance the user experience and create a more polished look and feel.
2023-06-26 01:42:25 -03:00
Rodrigo Nader
ae71a54a06
Main (#543) 2023-06-25 20:08:33 -03:00
Rodrigo Nader
f373d18502
Fix Icons, Add LLM Caching (#542)
- Fixed Icons that were not set properly on refactor.
- Added LLM Caching
2023-06-25 20:03:53 -03:00
Gabriel Luiz Freitas Almeida
a3efa8fe5d 🐛 fix(utils.py): fix import order to avoid import errors
The import order was changed to avoid import errors. The import of langchain was moved to the top of the file to avoid circular import errors.
2023-06-25 19:52:49 -03:00
Gabriel Luiz Freitas Almeida
31ee134ee7 Merge branch 'llm_caching' into release 2023-06-25 19:51:56 -03:00
Gabriel Luiz Freitas Almeida
5cd809ea6a 🔼 chore(pyproject.toml): update langchain dependency to version 0.0.215
🔼 chore(pyproject.toml): bump package version to 0.2.1
The langchain dependency has been updated to version 0.0.215, which includes bug fixes and performance improvements. The package version has been bumped to 0.2.1 to reflect the changes made.
2023-06-25 19:45:00 -03:00
Gabriel Luiz Freitas Almeida
6f9e6922df 🐛 fix(utils.ts): correct typo in MidjourneyIcon import
The import statement for the MidjourneyIcon was misspelled as MidjorneyIcon, which caused a runtime error. This commit fixes the typo by changing the import statement to MidjourneyIcon.
2023-06-25 19:42:56 -03:00
Gabriel Luiz Freitas Almeida
263ca75fd5 feat(utils.ts): add new icons to nodeIconsLucide
The import of Boxes and LayoutDashboard were removed as they were not being used in the file. New icons were added to nodeIconsLucide to improve the variety of icons available for use. The new icons added are MongoDBAtlasVectorSearch, Pinecone, and SupabaseVectorStore.
🔥 chore(utils.ts): remove unused import of Boxes and LayoutDashboard
2023-06-25 19:39:30 -03:00
Gabriel Luiz Freitas Almeida
a2197bfeb5 🐛 fix(Midjorney): fix typo in import statement and component name
The import statement and component name were both misspelled as "Midjorney" instead of "Midjourney". This commit fixes the typo in both places.
2023-06-25 19:39:20 -03:00
Naveen Choudhary
31f3b74c90 Update pyproject.toml 2023-06-25 19:35:39 -03:00
Gabriel Luiz Freitas Almeida
5f56384dce 🚀 feat(__main__.py): add support for cache configuration
The `update_settings` function now accepts a `cache` parameter that allows the user to specify the type of cache to use. The `cache` parameter is set to a default value of `SQLiteCache` and can be overridden by setting the `LANGCHAIN_CACHE` environment variable. This feature improves the flexibility of the application as it allows the user to choose the type of cache that best suits their needs.
2023-06-25 18:20:21 -03:00
Gabriel Luiz Freitas Almeida
a15da8eb0d 🚀 feat(settings.py): add cache configuration option
The cache configuration option has been added to the settings file with a default value of "InMemoryCache". This allows the user to choose the cache implementation they want to use.
2023-06-25 18:20:13 -03:00
Gabriel Luiz Freitas Almeida
89c2e5b064 🚀 feat(utils.py): add support for configurable LLM caching
This commit adds support for configurable LLM caching. The `setup_llm_caching` function now imports the cache class from the `langchain.cache` module based on the `settings.cache` value. If the import is successful, the `langchain.llm_cache` is set to an instance of the cache class. If the import fails, a warning is logged. If an exception is raised during the setup, a warning is logged with the error message.
2023-06-25 18:19:59 -03:00
Rodrigo Nader
1a318a82ae
Update README.md 2023-06-25 17:40:14 -03:00
Gustavo Schaedler
3287f45137
Add LLM cache (#541)
 feat(main.py): call setup_llm_caching function on app startup
The `setup_llm_caching` function is added to `utils.py` to set up LLM
caching. The function is then called on app startup in `main.py` using
the `app.on_event("startup")` method. This improves the performance of
the application by caching LLM objects.
2023-06-25 21:00:34 +01:00
Gabriel Luiz Freitas Almeida
29542f4cf8 🔧 chore(utils.py): add setup_llm_caching function to set up LLM caching
 feat(main.py): call setup_llm_caching function on app startup
The `setup_llm_caching` function is added to `utils.py` to set up LLM caching. The function is then called on app startup in `main.py` using the `app.on_event("startup")` method. This improves the performance of the application by caching LLM objects.
2023-06-25 09:12:41 -03:00
Gabriel Luiz Freitas Almeida
c94094a2e7
Release 0.2 (#537) 2023-06-23 22:52:46 +00:00