[PR #5342] Add Oracle23ai as a vector datasource #24886

Closed
opened 2026-02-21 20:23:52 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/5342

State: closed
Merged: Yes


Description

Add Oracle23ai as a new vector datasource

Oracle23ai Easily bring the power of similarity search to your business data without having to manage and integrate multiple databases. AI Vector Search enables you to search structured and unstructured data based on its semantics or meaning, in addition to its values. Native vector capabilities can help large language models (LLMs) deliver more-accurate and contextually relevant results with retrieval-augmented generation (RAG).

Change/Add List:

api/config.py
api/controllers/console/datasets/datasets.py
api/core/rag/datasource/vdb/vector_factory.py
api/core/rag/datasource/vdb/vector_type.py
api/requirements.txt
api/core/rag/datasource/vdb/oracle/oraclevector.py
docker/startupscripts/create_user.sql
api/tests/integration_tests/vdb/oracle/test_oraclevector.py
docker/docker-compose.yaml

Dependence:

oracledb==2.2.1

Type of Change

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update, included: Dify Document
  • Dependency upgrade

How Has This Been Tested?

  1. run docker build with a test tag, for example 'langgenius/dify-api:test'
  2. change the images in docker-compose.yml to use the test image you just build( api and work services)
  3. comment Weaviate vector store, and uncomment oracle vector store(don't forget the volumes)
  4. change VECTOR_STORE value to oracle

Suggested Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods
  • optional I have made corresponding changes to the documentation
  • optional I have added tests that prove my fix is effective or that my feature works
  • optional New and existing unit tests pass locally with my changes
**Original Pull Request:** https://github.com/langgenius/dify/pull/5342 **State:** closed **Merged:** Yes --- # Description Add Oracle23ai as a new vector datasource Oracle23ai Easily bring the power of similarity search to your business data without having to manage and integrate multiple databases. AI Vector Search enables you to search structured and unstructured data based on its semantics or meaning, in addition to its values. Native vector capabilities can help large language models (LLMs) deliver more-accurate and contextually relevant results with retrieval-augmented generation (RAG). Change/Add List: api/config.py api/controllers/console/datasets/datasets.py api/core/rag/datasource/vdb/vector_factory.py api/core/rag/datasource/vdb/vector_type.py api/requirements.txt api/core/rag/datasource/vdb/oracle/oraclevector.py docker/startupscripts/create_user.sql api/tests/integration_tests/vdb/oracle/test_oraclevector.py docker/docker-compose.yaml Dependence: oracledb==2.2.1 ## Type of Change - [x] New feature (non-breaking change which adds functionality) - [x] This change requires a documentation update, included: [Dify Document](https://github.com/langgenius/dify-docs) - [x] Dependency upgrade # How Has This Been Tested? 1. run docker build with a test tag, for example 'langgenius/dify-api:test' 2. change the images in docker-compose.yml to use the test image you just build( api and work services) 3. comment Weaviate vector store, and uncomment oracle vector store(don't forget the volumes) 4. change VECTOR_STORE value to oracle # Suggested Checklist: - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [x] My changes generate no new warnings - [ ] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods - [ ] `optional` I have made corresponding changes to the documentation - [ ] `optional` I have added tests that prove my fix is effective or that my feature works - [ ] `optional` New and existing unit tests pass locally with my changes
yindo added the pull-request label 2026-02-21 20:23:52 -05:00
yindo closed this issue 2026-02-21 20:23:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#24886