⚒️ AI-powered document search with Oracle and ONNX embeddings for recruiting

343 views · ⚒️ Engineering

Description

How it works

  1. Create a user for doing Hybrid Search.
  2. Clear Existing Data, if present.
  3. Add Documents into the table.
  4. Create a hybrid index.
  5. Run Semantic search on the Documents table for “prioritize teamwork and leadership experience”.
  6. Run Hybrid search for the text input in the Chat interface on the Documents table.

Setup Steps

Download the ONNX model

all_MiniLM_L12_v2_augmented.zip

Extract the ZIP file on the database server into a directory, for example /opt/oracle/onnx. After extraction, the folder contents should look like:

bash-4.4$ pwd
/opt/oracle/onnx
bash-4.4$ ls
all_MiniLM_L12_v2.onnx

Connect as SYSDBA and create the DBA user

-- Create DBA user
CREATE USER app_admin IDENTIFIED BY "StrongPassword123"
  DEFAULT TABLESPACE users 
  TEMPORARY TABLESPACE temp 
  QUOTA UNLIMITED ON users;


-- Grant privileges
GRANT DBA TO app_admin;
GRANT CREATE TABLESPACE, ALTER TABLESPACE, DROP TABLESPACE TO app_admin;

Create n8n Oracle DB credentials

Run the workflow

Click the manual Trigger

Enter search text in Chat interface

Note

Reference

Hybrid Search End-End Example

🔗 Nodes Used

Chat Trigger, Oracle Database

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup