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

Disable message saving to DB via an environment variable #3837

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ryanhalliday
Copy link
Contributor

Add an environment variable DISABLE_MESSAGE_SAVING which disables messages being saved to the database. This is useful for scenarios where you are avoiding saving potential PII to your Flowise instance.

This disables the buffer memory nodes. If they were used in a Flow it will no longer work and will instead show an error on run and in the UI. Because this is a very serious environment variable to enable, so I think this is an okay result.
image

Analytics integrations continue to work if enabled per flow.

Feedback will no longer work but I have not added error messages for that. I could add a validation to prevent Feedback being toggled on?

The messages UI will show a different error message:
image

Future upgrades to this may shift this from an environment variable to a per-flow setting but this is the simpler approach for now.

Please let me know if you would like any changes to this or there are any other potential areas impacted!

cc @tgmerritt @HenryHengZJ

@dentroai
Copy link

oh great if this PR is doing it's work it would solve #3832 !

@HenryHengZJ
Copy link
Contributor

one of the downside is that you won't be able to have source documents, files, images, tools etc displayed on the chat
image

thats because we save all these items on the flowise database, and only the text message is saved to the 3rd party memory node

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.

3 participants