From 5fb5a51b2ed244f52d5ce7f8f39548228a2b666c Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Thu, 23 Oct 2025 16:17:43 +0800 Subject: [PATCH] Fix: create KB initial embedding. (#10751) ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- api/apps/kb_app.py | 2 +- rag/flow/parser/parser.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/apps/kb_app.py b/api/apps/kb_app.py index 07c860e07..b889b95ee 100644 --- a/api/apps/kb_app.py +++ b/api/apps/kb_app.py @@ -70,7 +70,7 @@ def create(): e, t = TenantService.get_by_id(current_user.id) if not e: return get_data_error_result(message="Tenant not found.") - req["embd_id"] = t.embd_id + req["parser_config"] = { "layout_recognize": "DeepDOC", "chunk_token_num": 512, diff --git a/rag/flow/parser/parser.py b/rag/flow/parser/parser.py index a92e1accb..bff05d084 100644 --- a/rag/flow/parser/parser.py +++ b/rag/flow/parser/parser.py @@ -139,7 +139,7 @@ class ParserParam(ProcessParamBase): "oggvorbis", "ape" ], - "output_format": "json", + "output_format": "text", }, "video": { "suffix":[ @@ -147,7 +147,7 @@ class ParserParam(ProcessParamBase): "avi", "mkv" ], - "output_format": "json", + "output_format": "text", }, }