Skip to content

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

fix(rag): assign PDF parser tables to tbls in book chunking method (#19557) (#19559)

Ritik Yadav58c80cb5ef54
diff --git a/rag/app/book.py b/rag/app/book.py
index 4f8be76c53..5eb82e4a52 100644
--- a/rag/app/book.py
+++ b/rag/app/book.py
@@ -126,6 +126,8 @@ def chunk(filename, binary=None, from_page=0, to_page=MAXIMUM_PAGE_NUMBER, lang=
**kwargs,
)
+ tbls = tables
+
if not sections and not tables:
return []