From d2b9a36d92a5654c29157b8e0c723755d41f5797 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20MANSUY?= Date: Thu, 4 Dec 2025 19:19:03 +0800 Subject: [PATCH] cherry-pick 69a0b74c --- lightrag/api/routers/document_routes.py | 6 ++++++ pyproject.toml | 20 ++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/lightrag/api/routers/document_routes.py b/lightrag/api/routers/document_routes.py index ba0ef47c..2ce4267a 100644 --- a/lightrag/api/routers/document_routes.py +++ b/lightrag/api/routers/document_routes.py @@ -1184,6 +1184,7 @@ async def pipeline_enqueue_file( _convert_with_docling, file_path ) else: +<<<<<<< HEAD <<<<<<< HEAD if not pm.is_installed("pypdf2"): # type: ignore pm.install("pypdf2") @@ -1195,13 +1196,18 @@ async def pipeline_enqueue_file( for page in reader.pages: content += page.extract_text() + "\n" ======= +======= +>>>>>>> 69a0b74c (refactor: move document deps to api group, remove dynamic imports) # Use pypdf (non-blocking via to_thread) content = await asyncio.to_thread( _extract_pdf_pypdf, file, global_args.pdf_decrypt_password, ) +<<<<<<< HEAD >>>>>>> 4b31942e (refactor: move document deps to api group, remove dynamic imports) +======= +>>>>>>> 69a0b74c (refactor: move document deps to api group, remove dynamic imports) except Exception as e: error_files = [ { diff --git a/pyproject.toml b/pyproject.toml index f7b10b8e..38632833 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -92,6 +92,7 @@ docling = [ # Offline deployment dependencies (layered design for flexibility) <<<<<<< HEAD +<<<<<<< HEAD offline-docs = [ # Document processing dependencies "docling>=1.0.0,<3.0.0", @@ -103,6 +104,8 @@ offline-docs = [ ======= >>>>>>> 4b31942e (refactor: move document deps to api group, remove dynamic imports) +======= +>>>>>>> 69a0b74c (refactor: move document deps to api group, remove dynamic imports) offline-storage = [ # Storage backend dependencies "redis>=5.0.0,<7.0.0", @@ -127,6 +130,23 @@ offline-llm = [ offline = [ # Complete offline package (includes api for document processing, plus storage and LLM) "lightrag-hku[api,offline-storage,offline-llm]", +<<<<<<< HEAD +======= +] + +evaluation = [ + # RAG evaluation dependencies (RAGAS framework) + "ragas>=0.3.7", + "datasets>=4.3.0", + "httpx>=0.28.1", + "pytest>=8.4.2", + "pytest-asyncio>=1.2.0", +] + +observability = [ + # LLM observability and tracing dependencies + "langfuse>=3.8.1", +>>>>>>> 69a0b74c (refactor: move document deps to api group, remove dynamic imports) ] [project.scripts]