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

Store Message Component not using external memory #5688

Open
dhia-mahdaoui opened this issue Jan 15, 2025 · 3 comments
Open

Store Message Component not using external memory #5688

dhia-mahdaoui opened this issue Jan 15, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@dhia-mahdaoui
Copy link

Bug Description

the store message component is storing /retrieving to/from langflow's database even though its connected to an external databse
Screenshot 2025-01-15 092017
image

Reproduction

connect StoreMessage component to an external database

Expected behavior

only use the external database to save and retrieve message data

Who can help?

No response

Operating System

linux

Langflow Version

1.1.1

Python Version

None

Screenshot

No response

Flow File

No response

@dhia-mahdaoui dhia-mahdaoui added the bug Something isn't working label Jan 15, 2025
Copy link

dosubot bot commented Jan 15, 2025

Hey @dhia-mahdaoui! 👋 I'm here to help you with bugs, questions, and becoming a contributor. I'm Dosu, a bot designed to assist you while you wait for a human maintainer.

The issue you're experiencing with the Store Message Component in Langflow 1.1.1 storing and retrieving messages from Langflow's internal database instead of the connected external PostgreSQL database is likely due to the memory input not being provided or being empty. The component defaults to using Langflow's internal tables if the memory input is not specified [1][2].

To resolve this, ensure that the memory input is correctly defined and passed to the Store Message Component. The memory input should be set up to specify the external memory from which messages should be retrieved. If this input is not provided, the component will default to using the internal storage mechanism [1][3].

Additionally, verify that the environment variable LANGFLOW_DATABASE_URL is correctly set to point to your external PostgreSQL database. This is necessary for the component to connect to the external database [4].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@dhia-mahdaoui
Copy link
Author

My chat memory component is in fact connected to the external database as shown in the below image
Storing the input(1)

Additionally , if I change the LANGFLOW_DATABASE_URL to the external database , what will happen to the other entries of the langflow database like the folders and the flows , where are they going to be saved

Copy link

dosubot bot commented Jan 15, 2025

If you change the LANGFLOW_DATABASE_URL to point to an external database, all data that Langflow manages, including folders and flows, will be stored in that external database. This is because the LANGFLOW_DATABASE_URL environment variable configures the database connection for all components in Langflow. If this variable is set, Langflow will use the specified database for storing all its data, including messages, folders, and flows [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant