hackathon-starter icon indicating copy to clipboard operation
hackathon-starter copied to clipboard

Upgrade langchain to v1

Open YasharF opened this issue 2 months ago • 4 comments

Pre-req:

  1. You must have the RAG example up and working with a MongoDB Atlas instance, and valid Together AI and Hugging Face API keys.
  2. Your instance should be able to ingest PDFs of Microsoft and Amazon 2024 Annual Reports. (You can download the PDFs from https://ir.aboutamazon.com/annual-reports-proxies-and-shareholder-letters/default.aspx and https://www.microsoft.com/investor/reports/ar24/download-center/?msockid=2e8e9549a3976e96005f81c6a22d6fa0)
  3. Your instance must be able answer questions related to the Annual reports thru the UI without any errors.

Scope:

@langchain/community     to ^1.0.0
@langchain/core          to ^1.0.1
@langchain/mongodb       to ^1.0.0
@langchain/textsplitters to ^1.0.0
langchain                to ^1.0.1

patches/@langchain+mongodb+0.1.1.patch  to be upgraded for the new version
patches/langchain+0.3.36.patch          to be upgraded for the new version

You should be able to have the RAG example ingest the PDFs and answer related questions after the upgrade.

YasharF avatar Oct 21 '25 16:10 YasharF

Hey @YasharF I can help with this issue, could you please assign the same to me.

Vedant817 avatar Oct 22 '25 18:10 Vedant817

@Vedant817 Feel free to take a stab at it. I took a look and realized it is quite a bit of work. I have a couple of PRs open against LangChain, which if accepted could make this upgrade easier. If you are not sure, feel free to pick up one of the other Issues that is up for grabs; they are labeled with Help Wanted: https://github.com/sahat/hackathon-starter/issues?q=state%3Aopen%20label%3A%22help%20wanted%22

YasharF avatar Oct 22 '25 21:10 YasharF

i want to work on this issue ,could you plz assign me.

milan-deori avatar Oct 23 '25 15:10 milan-deori

@milan-deori same thing as I mentioned to @Vedant817 earlier:

Feel free to take a stab at it. I took a look and realized it is quite a bit of work. I have a couple of PRs open against LangChain, which if accepted could make this upgrade easier. If you are not sure, feel free to pick up one of the other Issues that is up for grabs; they are labeled with Help Wanted: https://github.com/sahat/hackathon-starter/issues?q=state%3Aopen%20label%3A%22help%20wanted%22

YasharF avatar Oct 23 '25 16:10 YasharF

Blocked on https://github.com/sahat/hackathon-starter/issues/1524

This issue will deprecate patches/@langchain+mongodb+0.1.1.patch because @langchain/mongodb 1.1.0 incorporated the code related to that patch - https://github.com/langchain-ai/langchainjs/commit/49ed8fc15b01e211a5a131905eab21d10accd05f

YasharF avatar Dec 16 '25 00:12 YasharF