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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: avoid closing shared session during embeddings (#26830)
minglu7150a8276b9d7
diff --git a/api/core/rag/embedding/cached_embedding.py b/api/core/rag/embedding/cached_embedding.pyindex c2f17cd148a..937b8f033c8 100644--- a/api/core/rag/embedding/cached_embedding.py+++ b/api/core/rag/embedding/cached_embedding.py@@ -43,8 +43,7 @@ class CacheEmbedding(Embeddings):else:embedding_queue_indices.append(i)- # release database connection, because embedding may take a long time- db.session.close()+ # NOTE: avoid closing the shared scoped session here; downstream code may still have pending workif embedding_queue_indices:embedding_queue_texts = [texts[i] for i in embedding_queue_indices]