Commit graph

6,351 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
98e0668e10 New lock 2023-11-01 19:28:54 -03:00
Gabriel Luiz Freitas Almeida
28e0c5a415
[New feature] Add support for Embeddings model from Amazon Bedrock & documentation (#1086) 2023-11-01 19:28:00 -03:00
kandakji
6ff9a7e9e1 dependency fix 2023-11-01 19:44:18 +01:00
kandakji
752a90030c Merge remote-tracking branch 'upstream/dev' into dev 2023-11-01 19:30:42 +01:00
kandakji
f73a77a9cf
Merge pull request #1 from kandakji/bedrock-embedding-custom-component
Bedrock Embeddings custom component
2023-11-01 19:25:11 +01:00
Gabriel Luiz Freitas Almeida
1f5ad28243 🔧 chore(schema.py): add 'last_tested_version' field to ComponentResponse and ListComponentResponse models for better tracking of component versions
🔧 chore(service.py): include 'last_tested_version' field in the list of fields to retrieve from the store API for better tracking of component versions
2023-11-01 11:44:59 -03:00
Gabriel Luiz Freitas Almeida
58f83aaa98
Bug - sidebar opening (#1084) 2023-11-01 11:34:28 -03:00
Gabriel Luiz Freitas Almeida
d85cd1a3c1
bugfix: patched csv agent (#1095) 2023-11-01 11:16:20 -03:00
Gabriel Luiz Freitas Almeida
07cfca4949
Generic Loaders (#964) 2023-11-01 11:15:22 -03:00
Gabriel Luiz Freitas Almeida
a408dd2b26 🐛 fix(FileLoader.py): fix type annotation for loaders_info variable to improve code readability and maintainability
🐛 fix(FileLoader.py): fix type annotation for loader_import variable to improve code readability and maintainability
🐛 fix(FileLoader.py): handle case when selected_loader_info is not a dict to prevent potential errors
🐛 fix(UrlLoader.py): fix type annotation for build method return value to improve code readability and maintainability
🐛 fix(UrlLoader.py): fix type annotation for loader_instance variables to improve code readability and maintainability
2023-11-01 11:12:08 -03:00
Gabriel Luiz Freitas Almeida
a899d8a081 Merge remote-tracking branch 'origin/dev' into FileLoaders 2023-11-01 10:56:49 -03:00
Gabriel Luiz Freitas Almeida
cbe27f867f
Fix capital errors (#1061) 2023-11-01 10:52:28 -03:00
Gabriel Luiz Freitas Almeida
66cbeb8172
Merge branch 'dev' into fixCapitalErrors 2023-11-01 10:52:17 -03:00
anovazzi1
c581a958e3 null handling 2023-11-01 10:19:44 -03:00
Gabriel Luiz Freitas Almeida
4e0273a9df 🐛 fix(service.py): add error handling for HTTP response in StoreService to improve reliability and prevent silent failures 2023-11-01 10:17:44 -03:00
anovazzi1
4310229c2f fix(market-card.tsx): fix logic for updating likes_count and liked_by_user state variables
The logic for updating the `likes_count` and `liked_by_user` state variables in the `handleLike` function was incorrect. This commit fixes the logic to correctly update the state variables based on the previous values. Additionally, it adds error handling for the `postLikeComponent` API call and sets the `likes_count` and `liked_by_user` state variables to their previous values in case of an error.
2023-11-01 10:14:48 -03:00
Gabriel Luiz Freitas Almeida
787a725207 🐛 fix(store.py): remove unnecessary blank line to improve code readability
🐛 fix(service.py): fix incorrect variable name in get_component_likes_count method
🐛 fix(service.py): convert likes count to integer to handle unexpected string values
🐛 fix(service.py): convert component_id to string before sending it in the request payload
2023-11-01 10:03:20 -03:00
anovazzi1
d8c133b5d2 fix(market-card.tsx): update setLikes_count and setLiked_by_user with response values to correctly display likes count and user like status
The changes were made to fix a bug where the likes count and user like status were not being displayed correctly on the market card component in the StorePage. The previous code was using the wrong variable to set the likes count and user like status. The fix updates the code to use the correct response values from the API call to set the likes count and user like status.
2023-11-01 09:54:53 -03:00
Gabriel Luiz Freitas Almeida
85647091f7 🐛 fix(store.py): change return value from dictionary to UsersLikesResponse object to improve readability and maintainability
🐛 fix(service.py): handle case when component is not found and raise ValueError to provide more informative error message
2023-11-01 09:52:58 -03:00
Gabriel Luiz Freitas Almeida
68198bfd41 🐛 fix(store.py): retrieve likes count after liking a component to update the response with the latest count
 feat(schema.py): update UsersLikesResponse model to include likes_count and liked_by_user fields
 feat(service.py): add get_component_likes_count method to retrieve the number of likes for a component
2023-11-01 09:52:57 -03:00
anovazzi1
2c3199ad0b format code 2023-11-01 09:49:10 -03:00
anovazzi1
24a7b2ca8a fix(API/index.ts): add postLikeComponent function to handle liking a component and update the liked_by_user and likes_count states accordingly
fix(market-card.tsx): add handleLike function to handle liking a component and update the liked_by_user and likes_count states accordingly
fix(market-card.tsx): update the Heart icon to be filled and have a destructive color if the component is liked by the user
fix(market-card.tsx): update the number of likes to be the likes_count state
fix(StorePage/index.tsx): set setErrorApiKey to false to clear any previous API key error
feat(types/store/index.ts): add liked_by_user property to storeComponent type to indicate if the component is liked by the user
2023-11-01 09:49:10 -03:00
Gabriel Luiz Freitas Almeida
75079731c9 🐛 fix(store.py): fix indentation issue in list_components function to improve code readability
🐛 fix(service.py): remove unused user_data parameter in get_liked_by_user_components function
🐛 fix(utils.py): rename in_users_collection attribute to in_user_collection for consistency
2023-11-01 09:45:42 -03:00
Gabriel Luiz Freitas Almeida
0339072079 🐛 fix(store.py): add missing import for user_data_context and update_components_with_user_data functions
 feat(store.py): add support for user_data_context context manager to fetch and set user data for requests made inside the context
 feat(store.py): add support for in_user_collection attribute in ListComponentResponse schema to indicate if a component is in the user's collection
🐛 fix(store.py): fix get_liked_by_user_components function to use user_data_var context variable instead of making the request multiple times
🐛 fix(store.py): fix get_components_in_users_collection function to use user_data_var context variable instead of making the request multiple times
 feat(store.py): add update_components_with_user_data function to update components with user data (liked_by_user and in_users_collection attributes)
2023-11-01 09:31:50 -03:00
cristhianzl
6799007514 Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-11-01 09:12:01 -03:00
Gabriel Luiz Freitas Almeida
7fc4d54055 🐛 fix(store.py): change type of store_api_Key parameter from str to Optional[str] to handle case when user does not provide an API key 2023-11-01 09:04:46 -03:00
Gabriel Luiz Freitas Almeida
04b047a823 🐛 fix(store.py): fix indentation issue and remove unnecessary comments
🐛 fix(schema.py): remove default value for liked_by_user attribute in ListComponentResponse

The indentation issue in `store.py` was causing the code to execute the wrong logic. The unnecessary comments were removed to improve code readability.

In `schema.py`, the default value for the `liked_by_user` attribute in the `ListComponentResponse` class was removed to ensure that it is only set when needed.
2023-11-01 08:58:21 -03:00
cristhianzl
7a9b972fb5 feat(API): add support for filtering store components by is_component flag in getStoreComponents function
feat(StorePage): add support for filtering components by type (Flow or Component) in handleGetComponents and handleChangePagination functions
2023-10-31 20:08:27 -03:00
Gabriel Luiz Freitas Almeida
0c728ea58e 🐛 fix(store.py): return result without modification if store_api_Key is not provided to prevent potential errors 2023-10-31 19:59:02 -03:00
Gabriel Luiz Freitas Almeida
e64d0fcf03 🔧 fix(store.py): set liked_by_user flag to True for components liked by the user
🔧 fix(schema.py): add liked_by_user field to ListComponentResponse schema
🔧 fix(service.py): add get_liked_by_user_components method to StoreService to retrieve liked components by user
2023-10-31 19:58:10 -03:00
anovazzi1
bf016801db fix(exportModal/index.tsx): add missing import statement for typesContext to fix compilation error
feat(exportModal/index.tsx): modify downloadFlow function to pass an object with id, data, description, and name properties instead of directly passing flow object to improve code readability and maintainability
2023-10-31 18:45:26 -03:00
anovazzi1
002eb97b66
Bug fixes (#1104) 2023-10-31 18:20:39 -03:00
anovazzi1
bd26be7ff2 Merge remote-tracking branch 'origin/dev' into bugFixes 2023-10-31 18:17:37 -03:00
Gabriel Luiz Freitas Almeida
c5df63baeb 🔧 chore(Chroma.py): update display_name of ChromaComponent to improve clarity and remove unnecessary information
🔧 chore(config.yaml): comment out Chroma vectorstore configuration to disable it temporarily
2023-10-31 15:27:49 -03:00
Gabriel Luiz Freitas Almeida
ddf14638e5 Format 2023-10-31 15:22:26 -03:00
Gabriel Luiz Freitas Almeida
8221079a32 Merge remote-tracking branch 'origin/main' into dev 2023-10-31 15:21:29 -03:00
Gabriel Luiz Freitas Almeida
d7e2d43409 🐛 fix(service.py): import and use process_tags_for_post function to correctly process tags for post request
 feat(utils.py): add process_tags_for_post function to handle processing of tags for post request
2023-10-31 10:44:57 -03:00
Gabriel Luiz Freitas Almeida
2f21eb2141
[New feature] Add support for Amazon Bedrock, Amazon Kendra (#1053) 2023-10-31 10:04:05 -03:00
hsolpark
5624b7871d fix(Dockerfile): remove unnecessary dependency after install and update cmd to use 'run' subcommand 2023-10-31 16:29:19 +09:00
cristhianzl
02c58211cf Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-10-30 22:42:05 -03:00
cristhianzl
a7120259e0 fix(API/index.ts): change parameter types in searchComponent function to allow null values for query, page, limit, status, and tags
refactor(StorePage/index.tsx): rename filteredCategories state variable to filteredTags for better semantics
feat(StorePage/index.tsx): add functionality to filter components by tags and update search results accordingly
2023-10-30 22:41:58 -03:00
Gabriel Luiz Freitas Almeida
489269c069
Release 0.5.5 (#1096) 2023-10-30 22:23:42 -03:00
Gabriel Luiz Freitas Almeida
0f442ddb2d 🐛 fix(market-card.tsx): fix typo in button text to display "Install Locally" instead of "Install Localy" for better readability and consistency 2023-10-30 21:31:36 -03:00
cristhianzl
344d3f9888 Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-10-30 21:15:28 -03:00
cristhianzl
06595c2f16 fix(saved-components): remove unused variables and pagination component
fix(market-card): refactor totalComponentsMetadata function to improve readability
fix(StorePage): remove unused import and add logic to handle pagination rendering based on search and loading status
2023-10-30 21:15:19 -03:00
Gabriel Luiz Freitas Almeida
79bd78613b 🔥 refactor(service.py): remove redundant assignment to params["fields"] in StoreService class 2023-10-30 20:57:21 -03:00
Gabriel Luiz Freitas Almeida
5ebd298463 🔥 refactor(service.py): remove unnecessary code that pops "page" and "limit" parameters from params dictionary
The code was removing "page" and "limit" parameters from the params dictionary, but these parameters were not being used afterwards. Removing this unnecessary code improves code readability and maintainability.
2023-10-30 20:42:33 -03:00
Gabriel Luiz Freitas Almeida
98f444b32e Merge remote-tracking branch 'origin/main' into release 2023-10-30 20:36:59 -03:00
Gabriel Luiz Freitas Almeida
cde4e0e83b 🔖 chore(pyproject.toml): bump version from 0.5.4 to 0.5.5 to indicate a new release with updates 2023-10-30 20:36:25 -03:00
Gabriel Luiz Freitas Almeida
c49d0c7faf 🐛 fix(loading.py): fix issue with search_kwargs assignment in instantiate_vectorstore function
🔧 chore(loading.py): refactor instantiate_vectorstore function to clean up docs or texts to have only documents
2023-10-30 20:32:48 -03:00