Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/externalize files from chatflow - do not save as base64 #1976

Merged
merged 20 commits into from
Apr 4, 2024

Conversation

vinodkiran
Copy link
Contributor

Currently Flowise saves all uploaded docs as base64 string to the chatflow. It is not scalable with large documents. Issue - #1247

Solution: save the files to a local path and only save the filepath to the chatflow.

This PR extracts the base64 string and saves it to the path specified in env.BLOB_STORAGE_PATH (creates a sub-folder with the chatflowid)

This is backwards compatible, when a current chatflow (with base64 in flowData) is opened and saved, the files are extracted and saved.

@HenryHengZJ
Copy link
Contributor

if you do a search type: 'file', there are other places that allow uploading files as well

@vinodkiran
Copy link
Contributor Author

if you do a search type: 'file', there are other places that allow uploading files as well

Yes, working on the rest of the item. Draft PR to ensure that the loaders work as expected with this change.

@vinodkiran vinodkiran marked this pull request as ready for review March 22, 2024 05:11
@vinodkiran
Copy link
Contributor Author

All nodes with type: 'file' are refactored, ready for review and merge.

@vinodkiran vinodkiran merged commit 658fa39 into FlowiseAI:main Apr 4, 2024
2 checks passed
jeffh86 added a commit to jeffh86/Flowise that referenced this pull request Apr 7, 2024
Feature/externalize files from chatflow - do not save as base64 (FlowiseAI#1976)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants