RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Check tika.parser return result (#3564)
Zhichang Yu482c1b59c800
diff --git a/rag/app/naive.py b/rag/app/naive.pyindex dfaef0bec8..2628fd5461 100644--- a/rag/app/naive.py+++ b/rag/app/naive.py@@ -263,9 +263,14 @@ def chunk(filename, binary=None, from_page=0, to_page=100000,callback(0.1, "Start to parse.")binary = BytesIO(binary)doc_parsed = parser.from_buffer(binary)- sections = doc_parsed['content'].split('\n')- sections = [(_, "") for _ in sections if _]- callback(0.8, "Finish parsing.")+ if doc_parsed.get('content', None) is not None:+ sections = doc_parsed['content'].split('\n')+ sections = [(_, "") for _ in sections if _]+ callback(0.8, "Finish parsing.")+ else:+ callback(0.8, f"tika.parser got empty content from {filename}.")+ logging.warning(f"tika.parser got empty content from {filename}.")+ return []else:raise NotImplementedError(