From 7b8d6f34b3af577a685788a9d6bf779a1d0ebf76 Mon Sep 17 00:00:00 2001 From: buua436 Date: Tue, 9 Jun 2026 19:02:37 +0800 Subject: [PATCH] fix: force image parser json output (#15847) ### What problem does this PR solve? Force image parser runtime output format to JSON so downstream chunking reads OCR results from the JSON output and image parser chunks can be displayed. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) Co-authored-by: Wang Qi --- rag/flow/parser/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")