Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

remove unused dependency (#664)

KevinHuSha6e4b74d9442
diff --git a/rag/svr/task_executor.py b/rag/svr/task_executor.py
index a1db21067d..467ccafc66 100644
--- a/rag/svr/task_executor.py
+++ b/rag/svr/task_executor.py
@@ -89,6 +89,7 @@ def set_progress(task_id, from_page=0, to_page=-1,
except Exception as e:
cron_logger.error("set_progress:({}), {}".format(task_id, str(e)))
+ close_connection()
if cancel:
sys.exit()
@@ -312,4 +313,3 @@ if __name__ == "__main__":
while True:
main()
- close_connection()
diff --git a/requirements.txt b/requirements.txt
index 14914f3826..cc57273f7f 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -50,7 +50,6 @@ joblib==1.3.2
lxml==5.1.0
MarkupSafe==2.1.5
minio==7.2.4
-mpi4py==3.1.5
mpmath==1.3.0
multidict==6.0.5
multiprocess==0.70.16