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", }, }