← All recipes
Moderne licensed

Replace langchain imports with langchain_community

Recipe IDorg.openrewrite.python.migrate.langchain.ReplaceLangchainCommunityImportsArtifactopenrewrite-migrate-python

Migrate third-party integration imports from langchain to langchain_community. These integrations were moved in LangChain v0.2.

Single recipepython0.2langchainmigrationProprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

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

If the recipe isn’t available locally, install it with:

mod config recipes pip install openrewrite-migrate-python