Commit graph

4,093 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
42a268a678 📝 docs(components/utilities.mdx): add documentation for Update Request feature
🚀 feat(UpdateRequest.py): add UpdateRequest component to make PATCH or PUT requests to a given URL
2023-08-22 17:35:20 -03:00
Gabriel Luiz Freitas Almeida
b1779e849d 🔥 refactor(base.py): remove unused imports and code in base.py
🔥 refactor(base.py): remove unused variables and functions in base.py
2023-08-22 16:46:57 -03:00
Gabriel Luiz Freitas Almeida
f69fddb1a0 🔧 chore(settings.py): add missing import statement for json module
🔧 chore(settings.py): remove unused import statement for contextlib module

🔧 chore(settings.py): remove unused import statement for orjson module

🔧 chore(settings.py): remove unused import statement for os module

🔧 chore(settings.py): remove unused import statement for typing module
2023-08-22 16:42:09 -03:00
Gabriel Luiz Freitas Almeida
fb7513f7cb 🐛 fix(custom_component.py): change repr_value type from str to Any to allow any type of value to be assigned 2023-08-22 16:37:53 -03:00
Gabriel Luiz Freitas Almeida
938fcbab62 🐛 fix(GetRequest.py): change variable name 'url' to 'urls' to improve clarity and semantics
 feat(PatchRequest.py): add new component 'PatchRequest' to make PATCH requests to a given URL
🐛 fix(PostRequest.py): change variable name 'document' to 'documents' to improve clarity and semantics
2023-08-22 16:37:43 -03:00
Gabriel Luiz Freitas Almeida
663e648af2 📝 docs(utilities.mdx): update documentation for GET and POST requests to reflect changes in the response format
📝 docs(utilities.mdx): clarify that multiple URLs can be provided for GET requests and the response will be a list of Documents
2023-08-22 16:15:02 -03:00
Gabriel Luiz Freitas Almeida
05c8f5a0f8 🐛 fix(GetRequest.py): update orjson_dumps function call to set indent_2 parameter to False
🐛 fix(GetRequest.py): update return type annotation of get_documents method to list[Document]
🐛 fix(PostRequest.py): update return type annotation of post_document method to list[Document]
2023-08-22 16:13:07 -03:00
Gabriel Luiz Freitas Almeida
6fa2258aac 🔧 chore(manager.py): import orjson library for improved JSON serialization and deserialization performance 2023-08-22 16:12:42 -03:00
Gabriel Luiz Freitas Almeida
70f98f9150 🐛 fix(custom_component.py): extract inner type from return type if it starts with 'list' or 'List' to handle list types correctly 2023-08-22 16:12:30 -03:00
Gabriel Luiz Freitas Almeida
1dbe776e6a feat(utils.py): add function extract_inner_type to extract the inner type from a type hint that is a list 2023-08-22 16:11:47 -03:00
Gabriel Luiz Freitas Almeida
39ae660e45 🔧 chore(loading.py): add import statement for json module to fix missing import error 2023-08-22 16:11:37 -03:00
Gabriel Luiz Freitas Almeida
6634e8864b 🔧 chore(vector_store.py): import orjson library for JSON serialization and deserialization
🐛 fix(vector_store.py): fix typo in function comment, change "OR" to "or" for better readability
2023-08-22 16:11:24 -03:00
Gabriel Luiz Freitas Almeida
59652b8875 🔧 chore(prebuilt.py): import missing JSON_PREFIX and JsonToolkit to fix unresolved references
🔧 chore(prebuilt.py): import missing JSON_PREFIX and JsonToolkit to fix unresolved references in prebuilt.py
2023-08-22 16:11:10 -03:00
Gabriel Luiz Freitas Almeida
8098cea405 🐛 fix(JSONDocumentBuilder.py): fix JSON serialization issue by using orjson_dumps function
🔒 chore(JSONDocumentBuilder.py): add type checking and raise TypeError for invalid input
2023-08-22 15:36:49 -03:00
Gabriel Luiz Freitas Almeida
0d53db1653 🐛 fix(PostRequest.py): add validation for document parameter to only accept Document or list of Documents to prevent errors 2023-08-22 15:33:44 -03:00
Gabriel Luiz Freitas Almeida
4efe06e440 🐛 fix(PostRequest.py): remove redundant session creation and move it to the calling function to improve efficiency and reusability
 feat(PostRequest.py): add support for processing multiple documents in a single request to improve performance and reduce network overhead
2023-08-22 15:32:00 -03:00
Gabriel Luiz Freitas Almeida
696a139171 🐛 fix(GetRequest.py): handle request timeout by returning a Document with status code 408 and "Request Timed Out" content
 feat(GetRequest.py): add timeout parameter to the build method to allow configuring the request timeout value
2023-08-22 15:31:47 -03:00
Gabriel Luiz Freitas Almeida
5fa8281e94 🐛 fix(JSONDocumentBuilder.py): handle both single document and list of documents when building JSON document
 feat(JSONDocumentBuilder.py): add support for building JSON document from a list of documents
2023-08-22 14:59:00 -03:00
Gabriel Luiz Freitas Almeida
6e18e795ff 🔧 chore(GetRequest.py): refactor GetRequest class to store the returned documents in a repr_value attribute for debugging purposes 2023-08-22 14:58:52 -03:00
Gabriel Luiz Freitas Almeida
62b9bb523c 🔧 fix(GetRequest.py): improve code readability and add support for multiple URLs and headers in GetRequest component
🔧 fix(PostRequest.py): improve code readability and add support for multiple documents, URLs, and headers in PostRequest component
2023-08-22 14:56:34 -03:00
Gabriel Luiz Freitas Almeida
9f617ff6f1 📝 docs(utilities.mdx): update Utilities documentation with additional sections and improve formatting for better readability 2023-08-22 11:56:14 -03:00
Gabriel Luiz Freitas Almeida
b8b9bb25bc 📦 feat(JSONDocumentBuilder.py): add JSONDocumentBuilder component to build a Document containing a JSON object using a key and another Document page content
📝 docs(JSONDocumentBuilder.py): add description and field configuration for JSONDocumentBuilder component
2023-08-22 11:56:01 -03:00
Gabriel Luiz Freitas Almeida
fb028e55b8 feat(GetRequest.py): add GetRequest component to make a GET request to a given URL
 feat(PostRequest.py): add PostRequest component to make a POST request to a given URL
2023-08-22 11:38:48 -03:00
Gabriel Luiz Freitas Almeida
22072084f8 🐛 fix(schemas.py): fix indentation issue in the __str__ method of StreamData class to improve code readability 2023-08-22 11:38:36 -03:00
Gabriel Luiz Freitas Almeida
44ce4eac5c 🔧 fix(endpoints.py): refactor logger.debug statement to improve readability and provide more information
🔧 fix(base.py): remove redundant logger.debug statement
🔧 fix(directory_reader.py): refactor logger.debug statement to improve readability and provide more information
🔧 fix(types.py): refactor logger.debug statement to improve readability and provide more information
2023-08-22 11:38:24 -03:00
Gabriel Luiz Freitas Almeida
ecf217dce8 🐛 fix(chat.py): remove unnecessary try-except block for building the graph and handle any exceptions thrown by Graph.from_payload() method
🔧 refactor(chat.py): improve logging output for built node parameters in stream_build() method
2023-08-22 11:37:51 -03:00
Gabriel Luiz Freitas Almeida
d0aa3261f1 🐛 fix(flows.py): change json.loads to orjson.loads for improved performance and compatibility with orjson library
🐛 fix(schemas.py): change json.dumps to orjson_dumps for improved performance and compatibility with orjson library
🐛 fix(utils.py): change json.loads to orjson.loads for improved performance and compatibility with orjson library
🐛 fix(loading.py): change json.loads to orjson.loads for improved performance and compatibility with orjson library
🐛 fix(utils.py): change json.loads to orjson.loads for improved performance and compatibility with orjson library
🐛 fix(vector_store.py): change json.loads to orjson.loads for improved performance and compatibility with orjson library
🐛 fix(types.py): change json.loads to orjson.loads for improved performance and compatibility with orjson library
🐛 fix(process.py): change json.loads to orjson.loads for improved performance and compatibility with orjson library
 feat(server.ts): change port variable case from lowercase port to uppercase PORT to improve semantics
 feat(server.ts): add support for process.env.PORT environment variable to be able to run app on a configurable port

🔧 fix(base.py): import orjson instead of json to improve performance and compatibility
🔧 fix(frontend_node/llms.py): use orjson_dumps instead of json.dumps to improve performance and compatibility
🔧 fix(frontend_node/utilities.py): use orjson_dumps instead of json.dumps to improve performance and compatibility
🔧 fix(test_cache.py): import orjson and use orjson_dumps instead of json.dumps to improve performance and compatibility

🔧 fix(test_database.py): import correct json encoder and decoder functions to fix import errors
🔧 fix(test_database.py): replace json.dumps and json.loads with orjson_dumps and orjson.loads for better performance and compatibility
🔧 fix(test_loading.py): remove unused import statement
2023-08-22 11:04:41 -03:00
Gabriel Luiz Freitas Almeida
53722f3f1d 🔧 chore(devcontainer.json): update devcontainer.json for Langflow Demo Container
🔧 chore(devcontainer.json): update devcontainer.json for Langflow Dev Container
2023-08-21 14:54:09 -03:00
Gabriel Luiz Freitas Almeida
9baeeb02a6
Merge branch 'main' into release 2023-08-18 02:31:24 +00:00
Gabriel Luiz Freitas Almeida
ee52095f61 🔥 chore(package.json): remove devDependencies from package.json
🔖 chore(pyproject.toml): bump version to 0.4.12
2023-08-17 23:30:15 -03:00
Gabriel Luiz Freitas Almeida
d1c17cffe6
🐛 fix(endpoints.py): add validation to ensure that custom components are in a single category (#787) 2023-08-18 02:13:59 +00:00
ogabrielluiz
d76cef81e8 fix: Remove category log 2023-08-17 23:11:44 -03:00
Gabriel Luiz Freitas Almeida
b772bbe976 🐛 fix(endpoints.py): add validation to ensure that custom components are in a single category 2023-08-17 22:33:52 -03:00
anovazzi1
aa44125953
v0.4.11 (#777)
**Bug Fix**:
This PR resolves a critical bug causing the deletion of custom component
edges during saves. The issue stemmed from miscommunication between edge
tracking and saving logic.

**Enhancement**:
Additionally, this PR enhances user experience by introducing a loading
screen during app startup. The loading screen offers visual feedback for
app initialization.
2023-08-16 17:32:38 -03:00
anovazzi1
2be7a88687
Release conflicts (#778)
update poetry lock and fix some conflicts
2023-08-16 15:52:58 -03:00
anovazzi1
83ad6b6986 chore(pyproject.toml): update package version from 0.4.10 to 0.4.11 to reflect changes in the codebase 2023-08-16 15:47:20 -03:00
anovazzi1
9b1295942c Merge remote-tracking branch 'origin/main' into release 2023-08-16 15:44:26 -03:00
anovazzi1
5fde616f9b
Added spinning wheel when /all is loading (#757)
Added spinning wheel when all components are still loading.
2023-08-16 15:34:07 -03:00
anovazzi1
0b8d91f116 Merge branch 'release' into bug/loadingIndicator 2023-08-16 15:26:15 -03:00
anovazzi1
408ef81a5b chore(constants.ts): add missing newline at the end of the file
feat(tabsContext.tsx): add support for skipping node updates based on node type defined in the skipNodeUpdate constant to improve performance and prevent unnecessary updates
2023-08-16 15:02:57 -03:00
Lucas Oliveira
5756f46e81
Added view option to LangFlow (#770) 2023-08-15 14:07:40 -03:00
Gabriel Luiz Freitas Almeida
1e0f4f316f
Merge branch 'main' into release 2023-08-15 15:50:42 +00:00
Gabriel Luiz Freitas Almeida
cef9fa4dd0 🔖 chore(pyproject.toml): update package version from 0.4.9 to 0.4.10 for maintenance purposes 2023-08-15 12:48:50 -03:00
Lucas Oliveira
2b21db32b5
Feature/view mode (#769)
This feature implements a view mode to all of the flows, to embed on
sites.
2023-08-15 12:43:29 -03:00
Lucas Oliveira
685ac70e90 disabled ZoomOnDoubleClick 2023-08-15 12:31:17 -03:00
Lucas Oliveira
fe7239b577 Disabled Pan On Pinch 2023-08-15 12:30:39 -03:00
Lucas Oliveira
8529c379e1 Disabled zoom and pan when on view mode 2023-08-15 12:29:19 -03:00
Lucas Oliveira
3667f4812e Fixed bug: flow not showing 2023-08-15 12:21:20 -03:00
Lucas Oliveira
81dba95720 Added view option to LangFlow 2023-08-15 12:16:32 -03:00
Gabriel Luiz Freitas Almeida
ea3aef363c
Fixes Duplicated CustomComponents, CTRL+Backspace and other fixes (#767) 2023-08-15 13:16:34 +00:00