Why in-database document processing? You can apply Oracle Database capabilities—security, transactions, scalability, and high availability—to the same pipeline that loads, chunks, and stores content for AI search and retrieval.If you are just starting with Oracle Database, consider exploring the free Oracle AI Database 26ai, which provides a simple way to get set up. While working with the database, it’s often advisable to avoid using the
SYSTEM user for application workloads; instead, create a dedicated user with the minimum required privileges. For background on user administration, refer to the official Oracle Database Guide.
Overview
Integration details
| Class | Package | Compatibility | Local | PY support |
|---|---|---|---|---|
OracleDocLoader | @oracle/langchain-oracledb | Node-only | ✅ | ✅ |
OracleTextSplitter | @oracle/langchain-oracledb | Node-only | ✅ | ✅ |
Load documents
Users have the flexibility to load documents from either the Oracle Database, a file system, or both, by appropriately configuring the loader parameters. For comprehensive details on these parameters, please consult the Oracle AI Vector Search Guide. A significant advantage of utilizing OracleDocLoader is its capability to process over 150 distinct file formats, eliminating the need for multiple loaders for different document types. For a complete list of the supported formats, please refer to the Oracle Text Supported Document Formats.Setup
To use OracleDocLoader install the@oracle/langchain-oracledb helpers (with @langchain/core) and make sure the Oracle Database driver prerequisites are met. Refer to the guide for comprehensive information about the Oracle Database driver.
Credentials
Set environment variables (or use another secrets manager) for the Oracle user that owns the source data.Installation
Instantiation
Load from Oracle Database
Load from files or directories
Switch the loader parameters to ingest local content.OracleDocLoader automatically handles more than 150 file formats; see the Oracle Text supported formats for the full list.
Chunk documents
The documents may vary in size, ranging from small to very large. Users often prefer to chunk their documents into smaller sections to facilitate the generation of embeddings. A wide array of customization options is available for this splitting process. For comprehensive details regarding these parameters, please consult the Oracle AI Vector Search Guide.Next steps
- Build a retrieval pipeline with
OracleVS - Generate embeddings using
OracleEmbeddings
API reference
For detailed documentation of allOracleDocLoader and OracleTextSplitter features and configuration options head to the Oracle LangChain Oracle DB repository.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

