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 session close issue (#13946)

Jyongaa19bb3f302f
diff --git a/api/core/rag/datasource/retrieval_service.py b/api/core/rag/datasource/retrieval_service.py
index 725df69fd02..ad41dbeb1dc 100644
--- a/api/core/rag/datasource/retrieval_service.py
+++ b/api/core/rag/datasource/retrieval_service.py
@@ -374,5 +374,3 @@ class RetrievalService:
except Exception as e:
db.session.rollback()
raise e
- finally:
- db.session.close()