Commit graph

4,157 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
d5faee5c67
Adds MetalRetriever, HugginfaceEndpoint and other bugfixes (#837) 2023-08-29 20:38:05 +00:00
Gabriel Luiz Freitas Almeida
70e5b11aa7 🔥 refactor(test_llms_template.py): comment out unused test_llms_settings function to improve code readability and remove dead code 2023-08-29 17:36:19 -03:00
Gabriel Luiz Freitas Almeida
0c133c48ce 🔖 chore(pyproject.toml): bump version to 0.4.17 for langflow package 2023-08-29 17:34:28 -03:00
Gabriel Luiz Freitas Almeida
3d9533a98a
🔀 refactor(OpenAIConversationalAgent.py): remove unused openai_api_base parameter to improve code readability and maintainability (#838) 2023-08-29 20:33:31 +00:00
Gabriel Luiz Freitas Almeida
40f78cc13b
Merge branch 'main' into release 2023-08-29 20:28:20 +00:00
Gabriel Luiz Freitas Almeida
8f27c71553
Bugfix - InputListComponent expect an array as Input() (#830) 2023-08-29 20:25:28 +00:00
Alexandre Henrique Pereira Tavares
251bf39830
Hg endpoints (#836)
Added component to use an LLM model from Hugging Face Inference API.
2023-08-29 17:23:18 -03:00
Alexandre Henrique
9530230c2c Fixed the connection to the forward component 2023-08-29 16:34:40 -03:00
Gabriel Luiz Freitas Almeida
4bb7181587 🔀 refactor(OpenAIConversationalAgent.py): remove unused openai_api_base parameter to improve code readability and maintainability
🔀 refactor(OpenAIConversationalAgent.py): make openai_api_base parameter optional with a default value of None for better flexibility and backward compatibility
2023-08-29 15:25:55 -03:00
Alexandre Henrique
e7f94f23e4 added huggingface endpoints 2023-08-29 00:31:55 -03:00
Cristhian Zanforlin Lousa
dc3db7ce78 🔧 chore(inputListComponent): add TODO comment for handling conversion from string to array format
🔧 chore(inputListComponent): add recursive character text splitter to handle conversion from string to array format
2023-08-28 13:59:01 -03:00
Cristhian Zanforlin Lousa
c6f6e2008e 🔀 refactor(inputListComponent): improve code readability and handle value conversion from string to array format
📝 WHY: The InputListComponent expects an array format for the value prop, but sometimes it receives a string instead. To prevent errors and ensure smooth operation, we need to handle the conversion from a string to an array with the string as its element. This refactor improves code readability and clarifies the purpose of the value conversion logic.
2023-08-28 13:52:49 -03:00
Cristhian Zanforlin Lousa
517816bd3b 🐛 fix(inputListComponent): convert value to an array when it's a string to avoid errors in InputListComponent 2023-08-28 13:51:42 -03:00
Cristhian Zanforlin Lousa
3b1872dd4c 🐛 fix(inputListComponent): fix type error when value is a string by converting it to an array 2023-08-28 13:31:50 -03:00
Gabriel Luiz Freitas Almeida
4d0771c9c8
Adds Metal Retriever Component (#828) 2023-08-28 11:43:34 +00:00
Gabriel Luiz Freitas Almeida
cc4db3911e 🔀 chore(MetalRetriever.py): fix import statement for Metal class from metal_sdk.metal module to resolve type checking issue 2023-08-28 08:06:37 -03:00
Gabriel Luiz Freitas Almeida
b3b0f63a1f 🔀 merge(MetalRetriever.py): merge changes from langchain/retrievers to langchain/schema to keep codebase up to date
🔀 merge(MetalRetriever.py): merge changes from metal_sdk/metal to langchain/schema to keep codebase up to date
🐛 fix(MetalRetriever.py): change BaseRetriever import from langchain.schema.retriever to langchain.schema to match updated codebase
 feat(MetalRetriever.py): add error handling to MetalRetriever build method to raise ValueError if connection to Metal API fails
2023-08-28 07:54:59 -03:00
Gabriel Luiz Freitas Almeida
d2c23945ea ⬆️ chore(pyproject.toml): upgrade metal-sdk dependency to version 2.0.2 2023-08-28 07:53:33 -03:00
Gabriel Luiz Freitas Almeida
0f9279c68d feat(MetalRetriever.py): add MetalRetriever component to retrieve data using the Metal API
 feat(__init__.py): add empty __init__.py file to the retrievers directory to make it a package
2023-08-28 07:32:18 -03:00
Gabriel Luiz Freitas Almeida
7987a10f92
Fixes bug when saving name and description, TextSplitters (#818) 2023-08-25 02:01:13 +00:00
Gabriel Luiz Freitas Almeida
9249e254fb
Merge branch 'main' into release 2023-08-25 01:59:38 +00:00
Gabriel Luiz Freitas Almeida
748f38e8c4
Fixed bug where name is not changed when description changes (#813) 2023-08-25 01:58:09 +00:00
Gabriel Luiz Freitas Almeida
f19e745b77
New Text Splitters (#817) 2023-08-25 01:56:26 +00:00
Gabriel Luiz Freitas Almeida
a28df1f08f 📝 docs(LanguageRecursiveTextSplitter.py): update documentation link to point to the correct URL
🔨 refactor(LanguageRecursiveTextSplitter.py): change type hints for the 'documents' parameter from Document to list[Document] and change return type from Document to list[Document] to improve clarity and consistency
🔨 refactor(LanguageRecursiveTextSplitter.py): change type hints for the 'chunk_overlap' parameter from Optional[int] to Optional[str] and handle conversion to int to improve flexibility and error handling
🔨 refactor(LanguageRecursiveTextSplitter.py): change type hints for the 'chunk_size' parameter from Optional[int] to Optional[str] and handle conversion to int to improve flexibility and error handling
🔨 refactor(RecursiveCharacterTextSplitter.py): change type hints for the 'documents' parameter from Document to list[Document] and change return type from Document to list[Document] to improve clarity and consistency
🔨 refactor(RecursiveCharacterTextSplitter.py): change type hints for the 'separators' parameter from Optional[str] to Optional[list[str]] and handle conversion to list of escaped characters to improve flexibility and error handling
🔨 refactor(RecursiveCharacterTextSplitter.py): change type hints for the 'chunk_overlap' parameter from Optional[int] to Optional[str] and handle conversion to int to improve flexibility and error handling
🔨 refactor(RecursiveCharacterTextSplitter.py): change type hints for the 'chunk_size' parameter from Optional[int] to Optional[str] and handle conversion to int to improve flexibility and error handling
2023-08-24 22:52:16 -03:00
Gabriel Luiz Freitas Almeida
c9f4969080 🐛 fix(types.py): fix regex pattern in extract_type_from_optional function to correctly extract type from optional field_type
🐛 fix(types.py): fix logic in add_new_custom_field function to correctly set is_list flag when field_type contains "list" keyword
 feat(types.py): add field_contains_list variable to check if field_type contains "list" keyword to improve semantics in add_new_custom_field function
2023-08-24 22:49:52 -03:00
Gabriel Luiz Freitas Almeida
86927d10d3 🔧 fix(types.py): add support for extracting inner type from list field types in process_type function 2023-08-24 22:37:30 -03:00
Gabriel Luiz Freitas Almeida
b326a7e246 📦 chore(pyproject.toml): update package version from 0.4.15 to 0.4.16
🔧 chore(pyproject.toml): add pillow package as a dependency for the project
2023-08-24 22:25:16 -03:00
Gabriel Luiz Freitas Almeida
0649b61fca 📦 chore(LanguageRecursiveTextSplitter.py): add LanguageRecursiveTextSplitter component to split text into chunks based on language
📝 docs(LanguageRecursiveTextSplitter.py): add documentation link for LanguageRecursiveTextSplitter component
🔧 refactor(LanguageRecursiveTextSplitter.py): refactor build_config method to use options from Language enum for separator_type
🔧 refactor(LanguageRecursiveTextSplitter.py): refactor build method to split text into chunks based on specified length and overlap
🔧 refactor(LanguageRecursiveTextSplitter.py): refactor build method to handle chunk_size and chunk_overlap as integers
🔧 refactor(LanguageRecursiveTextSplitter.py): refactor build method to use RecursiveCharacterTextSplitter from langchain.text_splitter
🔧 refactor(LanguageRecursiveTextSplitter.py): refactor build method to split documents using RecursiveCharacterTextSplitter and return the chunks
2023-08-24 22:24:07 -03:00
Gabriel Luiz Freitas Almeida
86730437a5 feat(RecursiveCharacterTextSplitter.py): add RecursiveCharacterTextSplitter component to split text into chunks of a specified length 2023-08-24 22:23:45 -03:00
Gabriel Luiz Freitas Almeida
383c9dc5ff 📝 docs(text-splitters.mdx): improve formatting and add missing information about LanguageRecursiveTextSplitter and its parameters
🐛 fix(text-splitters.mdx): fix typo in the description of `separators` parameter in `RecursiveCharacterTextSplitter`
2023-08-24 22:23:27 -03:00
Gabriel Luiz Freitas Almeida
40ab6b1e87 🔥 refactor(config.yaml): remove RecursiveCharacterTextSplitter from the config file as it is no longer used
📚 docs(config.yaml): update documentation link for CharacterTextSplitter in the config file
2023-08-24 22:22:31 -03:00
Gabriel Luiz Freitas Almeida
95ff2a7f6b 🔧 chore(util.py): add missing import for 'Document' from langchain.schema
🔧 chore(util.py): add missing type hint for 'documents' parameter in build_loader_repr_from_documents function
🔧 chore(util.py): add logic to calculate average document length and display summary information in build_loader_repr_from_documents function
2023-08-24 22:22:09 -03:00
Gabriel Luiz Freitas Almeida
6de92ea788
Fixes bug in websocket and updates dependencies (#816) 2023-08-25 00:23:40 +00:00
Gabriel Luiz Freitas Almeida
04b14747a2
Merge branch 'main' into release 2023-08-25 00:23:28 +00:00
Gabriel Luiz Freitas Almeida
43ca5e32d7 🔖 chore(pyproject.toml): update package version from 0.4.14 to 0.4.15
🔖 chore(pyproject.toml): update gunicorn package from version 21.1.0 to 21.2.0
🔖 chore(pyproject.toml): update chromadb package from version 0.3.21 to 0.3.0
🔖 chore(pyproject.toml): update rich package from version 13.4.2 to 13.5.0
🔖 chore(pyproject.toml): update unstructured package from version 0.7.0 to 0.10.0
🔖 chore(pyproject.toml): update pypdf package from version 3.11.0 to 3.15.0
🔖 chore(pyproject.toml): update fake-useragent package from version 1.1.3 to 1.2.1
🔖 chore(pyproject.toml): update qdrant-client package from version 1.3.0 to 1.4.0
🔖 chore(pyproject.toml): update weaviate-client package from version 3.21.0 to 3.23.0
🔖 chore(pyproject.toml): update cohere package from version 4.11.0 to 4.21.0
2023-08-24 21:20:33 -03:00
Gabriel Luiz Freitas Almeida
32de3e1f0a 🔧 chore(Makefile): exclude .venv folder from mypy linting to improve performance and avoid unnecessary errors 2023-08-24 21:20:11 -03:00
Gabriel Luiz Freitas Almeida
9fb1a26277 🐛 fix(manager.py): catch all exceptions instead of just TypeError when loading JSON payload to improve error handling and prevent crashes 2023-08-24 21:10:34 -03:00
Lucas Oliveira
1e5fc97013 Bug fixed 2023-08-24 20:21:09 -03:00
Lucas Oliveira
eaf70303ee Fixed bug where name is not changed when description changes 2023-08-24 10:52:23 -03:00
Gabriel Luiz Freitas Almeida
60b9f01cc6
Release 0.4.14 (#810) 2023-08-24 00:31:47 +00:00
Gabriel Luiz Freitas Almeida
5fd3394386
Merge branch 'main' into release 2023-08-24 00:31:40 +00:00
Gabriel Luiz Freitas Almeida
eca7a56f76 🔖 chore(pyproject.toml): bump version from 0.4.13 to 0.4.14 for langflow package 2023-08-23 21:30:43 -03:00
Gabriel Luiz Freitas Almeida
3d860ce4a1
Fixes Retry logic in /all endpoint (#809) 2023-08-24 00:20:59 +00:00
anovazzi1
cb5114b9b7
Bugfix - Retry Mechanism for Failed Requests in Loop (#808)
This pull request addresses an issue with the retry mechanism for failed
requests within a loop. The current implementation lacks proper handling
of failed requests, leading to potential data loss and inconsistent
behavior. This bugfix aims to improve the retry logic and ensure that
requests are appropriately retried when they fail within a loop.
2023-08-23 21:20:18 -03:00
anovazzi1
cd6985591f fix(App.tsx): replace hardcoded error message with FetchErrorComponent to improve error handling and display
feat(App.tsx): add support for displaying fetch error message and description in FetchErrorComponent
feat(fetchErrorComponent): create FetchErrorComponent to display fetch error message and description
fix(genericIconComponent): add stroke-width property to ensure consistent icon stroke width
feat(loadingComponent): import LoadingComponentProps from types/components to improve type safety
feat(constants): add FETCH_ERROR_MESSAGE and FETCH_ERROR_DESCRIPTION constants for fetch error handling
fix(typesContext): remove console.log statement and set fetchError to true when an error occurs during fetching types
feat(typesContext): add error handling for fetching types and set fetchError to true when an error occurs
feat(typesContext): import fetchErrorComponentType from types/components to improve type safety
feat(types/components): create fetchErrorComponentType and LoadingComponentProps interfaces for type safety
fix(styleUtils): import Unplug icon from lucide-react to fix missing icon issue
2023-08-23 21:09:53 -03:00
Gabriel Luiz Freitas Almeida
e642154621
Merge branch 'main' into release 2023-08-23 23:15:02 +00:00
Gabriel Luiz Freitas Almeida
1d166b6e6b poetry lock 2023-08-23 20:10:54 -03:00
Gabriel Luiz Freitas Almeida
1e968083be
Adds GET, POST and JSON Document utility components (#806) 2023-08-23 21:03:11 +00:00
Gabriel Luiz Freitas Almeida
f555c60abc
Merge branch 'main' into release 2023-08-23 19:51:53 +00:00
anovazzi1
d9b03980f7 fix(typesContext.tsx): remove unnecessary code that checks result status and fetches health on error
fix(typesContext.tsx): handle error when fetching types and set fetchError state to true
2023-08-23 14:59:20 -03:00