Upgrade langchain to v1
Pre-req:
- You must have the RAG example up and working with a MongoDB Atlas instance, and valid Together AI and Hugging Face API keys.
- 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)
- 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.
Hey @YasharF I can help with this issue, could you please assign the same to me.
@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
i want to work on this issue ,could you plz assign me.
@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
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