LangChain Experimental, CVEs and Repo Restructure #8043
Replies: 7 comments 10 replies
-
Looks like this change went in this morning... thanks @hwchase17! However, when I run any poetry command after syncing to the new source structure... I get the following error... anyone have ideas how to fix? Googling it seems unhelpful... looks like maybe this open issue: python-poetry/poetry#8122 ~/Source/github/docugami.langchain# poetry install 'name' Poetry 'name' |
Beta Was this translation helpful? Give feedback.
-
Another issue... sorry @hwchase17. As noted above, I did I think maybe there are ways to do this with vscode workspaces... but I am out of my depth here. Would love help from somebody more familiar with vscode and poetry. |
Beta Was this translation helpful? Give feedback.
-
Will this be done to Langchain typescript package also? |
Beta Was this translation helpful? Give feedback.
-
Should we migrate PR #7454 as well? I guess it should be |
Beta Was this translation helpful? Give feedback.
-
we have application which uses SQL and Pandas agent, how much impact we can expect from this movement. Will it be temporary or we need to look for some other options? |
Beta Was this translation helpful? Give feedback.
-
Hey! Thank you for all the insight, I'm building a SQL agent and when I run "from langchain.chains import SQLDatabaseChain" it gives me the following: "ImportError: cannot import name 'SQLDatabaseChain' from 'langchain.chains' (/usr/local/lib/python3.10/dist-packages/langchain/chains/init.py)" I have also tried using the following line but it also did not work "from langchain_experimental.sql import SQLDatabaseChain" I'm guessing this is related to the reorganization of packages? Would appreciate any help to workaround this :) |
Beta Was this translation helpful? Give feedback.
-
is csv_agent being deprecated to langchain-experimental, as well? |
Beta Was this translation helpful? Give feedback.
-
TL;DR:
langchain/experimental
as well as anything with a CVE.UPDATE 7/22
We have just completed the repo reorg and released
langchain_experimental==0.0.1
(https://pypi.org/project/langchain-experimental/)Note that we are NOT yet removing from the core langchain package - we will give people a week to migrate here.
See MIGRATE.md for how to migrate
Zero changes to functionality of things moved there
Vulnerabilities this addresses:
PALChain:
https://security.snyk.io/vuln/SNYK-PYTHON-LANGCHAIN-5752409
https://security.snyk.io/vuln/SNYK-PYTHON-LANGCHAIN-5759265
SQLDatabaseChain
https://security.snyk.io/vuln/SNYK-PYTHON-LANGCHAIN-5759268
load_prompt (Python files only)
https://security.snyk.io/vuln/SNYK-PYTHON-LANGCHAIN-5725807
ORIGINAL
Last week we talked about some high level changes to Langchain we’re considering and/or already implementing. This is an update on some immediate steps we’re taking over the next week.
One of the big issues we discussed was splitting LangChain into multiple packages. There’s a lot going on in LangChain, making it harder to navigate and more vulnerable to security issues. To start, we are going to split LangChain experimental into it’s own package and migrate any chains/agents with security concerns (CVEs) to that package.
The benefits of this include:
langchain
: this will remove any CVEs from the corelangchain
packagelangchain-experimental
you can contribute experimental ideas without worrying that it'll be misconstrued for production-ready codelangchain
: this will makelangchain
slimmer, more focused, and more lightweight.We will move everything in langchain/experimental and all chains and agents that execute arbitrary SQL and Python code:
Our immediate steps are going to be:
libs/{package_name}
. Other things besides the package (like the docs) will be kept at the top level still.libs/langchain
libs/langchain-experimental
. This will include everything currently inlangchain/experimental
as well as all chains/agents listed above.libs/langchain
yet, but will keep them in LangChain for another week to give folks time to migrate offlangchain/experimental
and everything listed above from the corelangchain
packageWe will update this discussion as we make progress. We realize this will probably cause some short term pains: the developer experience will have to change to this multi-package setup and there will be breaking changes in a week. Still, we think these are changes worth making to have a more lean core package with no security vulnerabilities.
Going forward, we will also encourage smaller, more experimental chains to start in LangChain experimental.
If you have any thoughts, concerns or feedback, please let us know!
Updates:
Beta Was this translation helpful? Give feedback.
All reactions