Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix issue #23758 (#23764)

engchina7566d90dfe1b
diff --git a/api/core/rag/datasource/vdb/oracle/oraclevector.py b/api/core/rag/datasource/vdb/oracle/oraclevector.py
index d1c8142b3db..303c3fe31ca 100644
--- a/api/core/rag/datasource/vdb/oracle/oraclevector.py
+++ b/api/core/rag/datasource/vdb/oracle/oraclevector.py
@@ -109,8 +109,19 @@ class OracleVector(BaseVector):
)
def _get_connection(self) -> Connection:
- connection = oracledb.connect(user=self.config.user, password=self.config.password, dsn=self.config.dsn)
- return connection
+ if self.config.is_autonomous:
+ connection = oracledb.connect(
+ user=self.config.user,
+ password=self.config.password,
+ dsn=self.config.dsn,
+ config_dir=self.config.config_dir,
+ wallet_location=self.config.wallet_location,
+ wallet_password=self.config.wallet_password,
+ )
+ return connection
+ else:
+ connection = oracledb.connect(user=self.config.user, password=self.config.password, dsn=self.config.dsn)
+ return connection
def _create_connection_pool(self, config: OracleVectorConfig):
pool_params = {