https://github.com/oracle/langchain-oracle
The Oracle LangChain integration provides official LangChain support for Oracle’s Generative AI and AI Platform services, enabling developers to build intelligent, secure, and scalable applications powered by Oracle’s cloud technologies.
https://github.com/oracle/langchain-oracle
Last synced: 30 days ago
JSON representation
The Oracle LangChain integration provides official LangChain support for Oracle’s Generative AI and AI Platform services, enabling developers to build intelligent, secure, and scalable applications powered by Oracle’s cloud technologies.
- Host: GitHub
- URL: https://github.com/oracle/langchain-oracle
- Owner: oracle
- License: upl-1.0
- Created: 2025-07-01T06:30:40.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2026-02-23T19:39:49.000Z (4 months ago)
- Last Synced: 2026-02-24T02:05:31.172Z (4 months ago)
- Language: Python
- Homepage:
- Size: 2.45 MB
- Stars: 46
- Watchers: 6
- Forks: 19
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
- Security: SECURITY.md
Awesome Lists containing this project
README
# 🦜️🔗 LangChain 🤝 Oracle
Welcome to the official repository for LangChain integration with [Oracle Cloud Infrastructure (OCI)](https://cloud.oracle.com/) and [Oracle AI Vector Search](https://www.oracle.com/database/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**.
## Features
- **LLMs**: Includes LLM classes for OCI services like [Generative AI](https://cloud.oracle.com/ai-services/generative-ai) and [ModelDeployment Endpoints](https://cloud.oracle.com/ai-services/model-deployment), allowing you to leverage their language models within LangChain.
- **Agents**: Includes Runnables to support [Oracle Generative AI Agents](https://www.oracle.com/artificial-intelligence/generative-ai/agents/), allowing you to leverage Generative AI Agents within LangChain and LangGraph.
- **Vector Search**: Offers native integration with [Oracle AI Vector Search](https://www.oracle.com/database/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`
- **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.
---
## Installation
For OCI services:
```bash
python -m pip install -U langchain-oci
```
For Oracle AI Vector Search services:
```bash
python -m pip install -U langchain-oracledb
```
---
## Quick Start
This repository includes three main integration categories. For detailed information, please refer to the respective libraries:
- [OCI Generative AI](https://github.com/oracle/langchain-oracle/tree/main/libs/oci)
- [OCI Data Science (Model Deployment)](https://github.com/oracle/langchain-oracle/tree/main/libs/oci)
- [Oracle AI Vector Search](https://github.com/oracle/langchain-oracle/tree/main/libs/oracledb)
## Samples
Explore comprehensive code samples covering authentication, vision/multimodal, agents, tool calling, structured output, async patterns, and embeddings:
- [Samples](https://github.com/oracle/langchain-oracle/tree/main/samples)
## Documentation
For full documentation, see the official LangChain integration pages:
- [OCI Generative AI Provider](https://python.langchain.com/docs/integrations/providers/oci/)
- [ChatOCIGenAI](https://python.langchain.com/docs/integrations/chat/oci_generative_ai/)
- [OCIGenAIEmbeddings](https://python.langchain.com/docs/integrations/text_embedding/oci_generative_ai/)
## Contributing
This project welcomes contributions from the community. Before submitting a pull request, please [review our contribution guide](./CONTRIBUTING.md)
## Security
Please consult the [security guide](./SECURITY.md) for our responsible security vulnerability disclosure process
## License
Copyright (c) 2025 Oracle and/or its affiliates.
Released under the Universal Permissive License v1.0 as shown at