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

MongoDB support for store. #3793

Open
4 tasks done
Saisiva123 opened this issue Mar 12, 2025 · 3 comments
Open
4 tasks done

MongoDB support for store. #3793

Saisiva123 opened this issue Mar 12, 2025 · 3 comments

Comments

@Saisiva123
Copy link

Checked other resources

  • This is a bug, not a usage question. For questions, please use GitHub Discussions.
  • I added a clear and detailed title that summarizes the issue.
  • I read what a minimal reproducible example is (https://stackoverflow.com/help/minimal-reproducible-example).
  • I included a self-contained, minimal example that demonstrates the issue INCLUDING all the relevant imports. The code run AS IS to reproduce the issue.

Example Code

I think currently in development we have InMemoryStore and in Production we have Postgres by default, correct me if I'm wrong anywhere.

But Let's say If I want to do some analytics with the data that I'm going to store in long term memory, there is no way for me right now. Because Store default stores everything to Postgres and not sure how to access this long term memory for analytics.

Why dont langraph provides a feasibility where store could use external databases like MongoDB for the long term memory.

Error Message and Stack Trace (if applicable)

Description

Using Latest versions

System Info

Why dont langraph provides a feasibility where store could use external databases like MongoDB for the long term memory.

@Saisiva123
Copy link
Author

Saisiva123 commented Mar 12, 2025

Solutions could be:

  1. Either provide access to the postgres store where the long term memory is getting stored.
  2. Or please provide support for other databases like Mongodb, so that we could create analytics using that long term memory we store in MongoDB.

This would bring more value to the langgraph .

@hinthornw
Copy link
Contributor

hinthornw commented Mar 12, 2025

It seems you are talking about LangGraph platform specifically? You can access all the stored memories via the APIs - we don't have immediate plans to allow customization of the persistence layer for the managed version of langgraph platform - if I'm misreading the question and it's actuallyabout a different scenario, please let me know.

@Saisiva123
Copy link
Author

@hinthornw could you suggest me any possible way to store the long term memory into Mongodb, ofcourse in production langgrpah platform stores in postgres but at the same time I need to store to Mongodb at the same time.

RIGHT NOW I have a remote graph connected to main application graph. This remote graph runs in the background to store the memory.

My project also needs the data to be stored into Mongodb, so your help here is most appreciated

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

No branches or pull requests

2 participants