Contribute Integrations
LangChain integrations are packages that provide access to language models, vector stores, and other components that can be used in LangChain.
This guide will walk you through how to contribute new integrations to LangChain, by publishing an integration package to PyPi, and adding documentation for it to the LangChain Monorepo.
These instructions will evolve over the next few months as we improve our integration processes.
Components to Integrate
See the Conceptual Guide for an overview of all components supported in LangChain
While any component can be integrated into LangChain, at this time we are only accepting new integrations in the docs of the following kinds:
Integrate these ✅ | Not these ❌ |
---|---|
|
|
How to contribute an integration
The only step necessary to "be" a LangChain integration is to add documentation that will render on this site (https://python.langchain.com/).
As a prerequisite to adding your integration to our documentation, you must:
- Confirm that your integration is in the list of components we are currently accepting.
- Ensure that your integration is in a separate package that can be installed with
pip install <your-package>
. - Implement the standard tests for your integration and successfully run them.
- Write documentation for your integration in the
docs/docs/integrations/<component_type>
directory of the LangChain monorepo. - Add a provider page for your integration in the
docs/docs/integrations/providers
directory of the LangChain monorepo.
Once you have completed these steps, you can submit a PR to the LangChain monorepo to add your integration to the documentation.
Further Reading
If you're starting from scratch, you can follow the Integration Template Guide to create and publish a new integration package to the above spec.