Welcome to the official repository for LangChain integration with Oracle Cloud Infrastructure (OCI) and Oracle AI Vector Search. This project provides native LangChain components for interacting with Oracle's AI services—providing support for OCI Generative AI, OCI Data Science and Oracle AI Vector Search.
- LLMs: Includes LLM classes for OCI services like Generative AI and ModelDeployment Endpoints, allowing you to leverage their language models within LangChain.
- Agents: Includes Runnables to support Oracle Generative AI Agents, allowing you to leverage Generative AI Agents within LangChain and LangGraph.
- Vector Search: Offers native integration with Oracle AI Vector Search through a LangChain-compatible components. This enables pipelines that can:
- Load the documents from various sources using
OracleDocLoader
- Summarize content within/outside the database using
OracleSummary
- Generate embeddings within/outside the database using
OracleEmbeddings
- Chunk according to different requirements using Advanced Oracle Capabilities from
OracleTextSplitter
- Store, index, and query vectors using
OracleVS
- Load the documents from various sources using
- More to come: This repository will continue to expand and offer additional components for various OCI and Oracle AI services as development progresses.
This project merges and replaces earlier OCI and Oracle AI Vector Search integrations from the
langchain-community
repository and unifies contributions from Oracle teams. All integrations in this package assume that you have the credentials setup to connect with oci and database services.
For OCI services:
python -m pip install -U langchain-oci
For Oracle AI Vector Search services:
python -m pip install -U langchain-oracledb
This repository includes three main integration categories. For detailed information, please refer to the respective libraries:
This project welcomes contributions from the community. Before submitting a pull request, please review our contribution guide
Please consult the security guide for our responsible security vulnerability disclosure process
Copyright (c) 2025 Oracle and/or its affiliates.
Released under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl/