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:ERROR 20 Method rag.nlp.search.Dealer.search() parameter highlight="None" violates type hint bool | list, as <class "builtins.NoneType"> "None" not list or bool. (#10743)
Stephen Hu1d57801c0c9b
diff --git a/rag/nlp/search.py b/rag/nlp/search.pyindex c10b803bd0..4256a638d2 100644--- a/rag/nlp/search.py+++ b/rag/nlp/search.py@@ -72,9 +72,12 @@ class Dealer:def search(self, req, idx_names: str | list[str],kb_ids: list[str],emb_mdl=None,- highlight: bool | list = False,+ highlight: bool | list | None = None,rank_feature: dict | None = None):+ if highlight is None:+ highlight = False+filters = self.get_filters(req)orderBy = OrderByExpr()