diff --git a/common/misc_utils.py b/common/misc_utils.py index 85dd707e1..daebf4c8c 100644 --- a/common/misc_utils.py +++ b/common/misc_utils.py @@ -222,8 +222,8 @@ def install_mineru() -> None: ["uv", "venv", str(venv_dir)], cwd=str(tools_dir), env=env, - stdout=subprocess.DEVNULL, - stderr=subprocess.PIPE, + # stdout=subprocess.DEVNULL, + # stderr=subprocess.PIPE, ) else: logging.info("Virtual environment exists at %s. Reusing it.", venv_dir) @@ -237,8 +237,8 @@ def install_mineru() -> None: "--extra-index-url", "https://pypi.org/simple", ], cwd=str(tools_dir), - stdout=subprocess.DEVNULL, - stderr=subprocess.PIPE, + # stdout=subprocess.DEVNULL, + # stderr=subprocess.PIPE, env=env, ) @@ -256,4 +256,4 @@ def install_mineru() -> None: raise RuntimeError(f"MinerU installation failed: {mineru_exec} is not functional") os.environ["MINERU_EXECUTABLE"] = str(mineru_exec) - logging.info("MinerU installation completed successfully. Executable: %s", mineru_exec) \ No newline at end of file + logging.info("MinerU installation completed successfully. Executable: %s", mineru_exec) diff --git a/rag/svr/task_executor.py b/rag/svr/task_executor.py index d19a08cce..0e32bd3ff 100644 --- a/rag/svr/task_executor.py +++ b/rag/svr/task_executor.py @@ -735,7 +735,7 @@ async def insert_es(task_id, task_tenant_id, task_dataset_id, chunks, progress_c mom_ck["available_int"] = 0 flds = list(mom_ck.keys()) for fld in flds: - if fld not in ["id", "content_with_weight", "doc_id", "kb_id", "available_int"]: + if fld not in ["id", "content_with_weight", "doc_id", "kb_id", "available_int", "oosition_int"]: del mom_ck[fld] mothers.append(mom_ck)