Oracle AI Database supports AI workloads where you query data by meaning (semantics), not just keywords. It combines semantic search over unstructured content with relational filtering over business data in a single system—so you can build retrieval workflows (like RAG) without introducing a separate vector database and fragmenting data across multiple platforms. This guide demonstrates how to generate document summaries usingDocumentation Index
Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
Use this file to discover all available pages before exploring further.
OracleSummary from the Oracle AI Vector Search LangChain integration.
Why summarization here? Summaries are a practical way to compress long documents into retrieval-friendly content (previews, metadata, or condensed context) while keeping governance and operational guarantees close to the data.If you are just starting with Oracle Database, consider exploring the free Oracle 26 AI. For background on user administration, refer to the official Oracle guide.
Overview
Integration details
| Class | Package | Local | PY support |
|---|---|---|---|
OracleSummary | @oracle/langchain-oracledb | ✅ | ✅ |
Setup
To access OracleSummary, install the@oracle/langchain-oracledb helpers (with @langchain/core) and make sure the Oracle Database driver prerequisites are satisfied for your environment.
Credentials
Set credentials (or use a secrets manager) for the Oracle user that owns your summarization configuration:OCI_CRED, HF_CRED) using the PL/SQL helpers documented in the Oracle AI Vector Search guide.
Installation
Instantiate the tool
Summarize text with in-database models
Run ONNX summarization models directly in Oracle Database to keep data on the same host as your transactional workloads.Use managed providers
Switch theprovider parameter to route summarization requests through OCI Generative AI or Hugging Face. Provide the credential name you registered in Oracle Database and, if required, a proxy string.
Chain with LangChain tools
You can wrapOracleSummary in a custom LangChain tool or runnable to integrate it with agent tool-calling.
Next steps
- Load content with
OracleDocLoader - Chunk and normalize with
OracleTextSplitter - Generate embeddings using
OracleEmbeddingsand store them inOracleVS
API reference
For detailed documentation of allOracleSummary parameters and return types, see the Oracle LangChain Oracle DB repository.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

