Skip to content

Conversation

hackerdave
Copy link

@hackerdave hackerdave commented Aug 8, 2025

Description

This PR integrates Oracle Document Loader and Oracle Vector Search with LangChain.js. The integration enables the use of Oracle's advanced vector search capabilities within the LangChain.js framework.

Key Features

  • Adds support for Oracle Document Loader in LangChain.js.
    • loading documents either from the file system or a table
    • generating embeddings either via an ONNX model loaded into the database or a third-party REST call
    • summarizing documents either via Oracle Text or a third-party REST call
  • Adds support for Oracle Vector Search in LangChain.js.
    • includes filter support
  • Source is under libs/langchain-oracle
  • Includes doc with example usage and tests for the integration.

Example usage

Text Splitter

import {OracleTextSplitter} from "@langchain/oracle";

const splitter = new OracleTextSplitter(conn, splitter_params);
let chunks = await splitter.splitText(doc.pageContent);

Embeddings

import {OracleEmbeddings} from "@langchain/oracle";

const embedder = new OracleEmbeddings(conn, embedder_params, proxy);
const embed = await embedder.embedQuery(chunk);

Testing

  • Verified integration with unit tests.
  • Added relevant test cases to ensure proper functionality.

Copy link

vercel bot commented Aug 8, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
langchainjs-docs Error Error Aug 21, 2025 7:22pm
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
langchainjs-api-refs Ignored Ignored Aug 21, 2025 7:22pm

@hackerdave hackerdave closed this Aug 21, 2025
@hackerdave hackerdave reopened this Aug 21, 2025
@hackerdave hackerdave marked this pull request as ready for review August 21, 2025 22:20
@hackerdave hackerdave changed the title feat(oracle): Add Oracle Document Loader and Oracle Vector Search with LangChain.js feat(langchain-oracle): Add Oracle Document Loader and Oracle Vector Search to LangChain.js Aug 21, 2025
@hackerdave hackerdave changed the title feat(langchain-oracle): Add Oracle Document Loader and Oracle Vector Search to LangChain.js feat(langchain-oracle): Add Oracle Document Loader and Oracle Vector Search Aug 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants