Replace langchain imports with langchain_community

Proprietary

Migrate third-party integration imports from langchain to langchain_community. These integrations were moved in LangChain v0.2. Only from langchain... import ... statements are rewritten, and only when every name they import moved.

org.openrewrite.python.migrate.langchain.ReplaceLangchainCommunityImports
mod run . --recipe=org.openrewrite.python.migrate.langchain.ReplaceLangchainCommunityImports

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.