LangChain Integration
As a provider of large language models (LLMs), Generative AI service has an integration with LangChain. LangChain is an open source modular framework for building applications that are powered by large language models (LLMs). LangChain integrations are LangChain adapters to 3rd party services. LangChain acts as a bridge, connecting the LLMs with other data sources and tools, streamlining the development of applications.
Intsalling the LangChain OCI Package
Install the LangChain OCI package with the following command:
pip install -U langchain-oci
langchain-community users:
If you have installed the langchain-community package, this package is now deprecated. Instead, we recommend that you install and use the latest version of the langchain-oci
package. Examples and usage remains the same.
- What's new in langchain-oci?
-
- OCI Generative AI Integration: Support for the chat and embedding models
- OCI Data Science Model Deployment: Compatible with VLLM, TGI, and custom endpoints.
- Performance Enhancements: Optimized implementations and improved error handling.
- Comprehensive Documentation: Includes examples, usage guides, and updated integration docs
- Why migrate?
-
Migrate to continue receiving updates and support. Benefits include:
- Access to latest features and improvements
- Security updates and bug fixes
- Dedicated support and documentation
- Performance optimizations
langchain-oci (New) |
langchain-community (deprecated) |
---|---|
GitHub Repository: oracle/langchain-oracle | GitHub Repository: langchain-ai/langchain-community |
PyPI: langchain-oci 0.1.3 | PyPI: langchain-community 0.3.27 |
LangChain for Python Applications
OCI Generative AI LangChain integration is supported for Python. For set up instructions and examples, see LangChain integration.
LangChain4j for Java Applications
The LangChain4j
library is the Java version of LangChain, created by the community for Java developers. It brings the same benefits and tools as LangChain, making it easier for Java users to work with LLMs. For APIs and examples, see LangChain4j for OCI Generative AI and LangChain4j on GitHub.