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
Fix: type check in resume parsing method (#13740)
Magicbook1108f991cd362eb5
diff --git a/rag/app/resume.py b/rag/app/resume.pyindex 08bb737764..80fc322bd0 100644--- a/rag/app/resume.py+++ b/rag/app/resume.py@@ -163,9 +163,11 @@ FIELD_MAP_EN = {}-def _is_english(lang: str) -> bool:- """Determine if the language parameter indicates English"""- return lang.lower() in ("english", "en")+def _is_english(lang: str | None) -> bool:+ """Determine if the language parameter indicates English."""+ if not isinstance(lang, str):+ return False+ return lang.strip().lower() in ("english", "en")def get_field_map(lang: str) -> dict: