Skip to content

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

Refactor: QWenCV release temp path (#11122)

Stephen Hu82ca2e037889
diff --git a/rag/llm/cv_model.py b/rag/llm/cv_model.py
index 48d72ff401..cf57b720be 100644
--- a/rag/llm/cv_model.py
+++ b/rag/llm/cv_model.py
@@ -303,7 +303,9 @@ class QWenCV(GptV4):
return call_api()
except Exception as e2:
raise RuntimeError(f"Both default and intl endpoint failed.\nFirst error: {e1}\nSecond error: {e2}")
-
+ finally:
+ if tmp_path and tmp_path.exists():
+ tmp_path.unlink()
class HunyuanCV(GptV4):