Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix: missing parameters in by_plaintext method for PDF naive mode (#11408)

coding971c1bcba707
diff --git a/rag/app/book.py b/rag/app/book.py
index 5ea28d40d5..5bdaec72d4 100644
--- a/rag/app/book.py
+++ b/rag/app/book.py
@@ -113,6 +113,7 @@ def chunk(filename, binary=None, from_page=0, to_page=100000,
lang = lang,
callback = callback,
pdf_cls = Pdf,
+ layout_recognizer = layout_recognizer,
**kwargs
)
diff --git a/rag/app/laws.py b/rag/app/laws.py
index dd97e4e3a7..ba25928330 100644
--- a/rag/app/laws.py
+++ b/rag/app/laws.py
@@ -172,6 +172,7 @@ def chunk(filename, binary=None, from_page=0, to_page=100000,
lang = lang,
callback = callback,
pdf_cls = Pdf,
+ layout_recognizer = layout_recognizer,
**kwargs
)
diff --git a/rag/app/manual.py b/rag/app/manual.py
index 124864041f..b3a4ae38d5 100644
--- a/rag/app/manual.py
+++ b/rag/app/manual.py
@@ -213,6 +213,7 @@ def chunk(filename, binary=None, from_page=0, to_page=100000,
lang = lang,
callback = callback,
pdf_cls = Pdf,
+ layout_recognizer = layout_recognizer,
parse_method = "manual",
**kwargs
)
diff --git a/rag/app/one.py b/rag/app/one.py
index 5574aaa51b..7cd1bb7854 100644
--- a/rag/app/one.py
+++ b/rag/app/one.py
@@ -99,6 +99,7 @@ def chunk(filename, binary=None, from_page=0, to_page=100000,
lang = lang,
callback = callback,
pdf_cls = Pdf,
+ layout_recognizer = layout_recognizer,
**kwargs
)
diff --git a/rag/app/presentation.py b/rag/app/presentation.py
index cd1d308ec1..6a872528f2 100644
--- a/rag/app/presentation.py
+++ b/rag/app/presentation.py
@@ -142,6 +142,7 @@ def chunk(filename, binary=None, from_page=0, to_page=100000,
lang = lang,
callback = callback,
pdf_cls = Pdf,
+ layout_recognizer = layout_recognizer,
**kwargs
)