Skip to content

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

fix: force image parser json output (#15847)

buua4367b8d6f34b3af
diff --git a/rag/flow/parser/parser.py b/rag/flow/parser/parser.py
index 8721f2b222..5395f1c031 100644
--- a/rag/flow/parser/parser.py
+++ b/rag/flow/parser/parser.py
@@ -1055,7 +1055,7 @@ class Parser(ProcessBase):
self.callback(random.randint(1, 5) / 100.0, "Start to work on an image.")
conf = self._param.setups["image"]
- self.set_output("output_format", conf["output_format"])
+ self.set_output("output_format", "json")
img = Image.open(io.BytesIO(blob)).convert("RGB")