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 wikipedia language (#1519)
Hd4332643c485
diff --git a/graph/component/wikipedia.py b/graph/component/wikipedia.pyindex 48abefaf6e..4da911fb83 100644--- a/graph/component/wikipedia.py+++ b/graph/component/wikipedia.py@@ -30,11 +30,11 @@ class WikipediaParam(ComponentParamBase):def __init__(self):super().__init__()self.top_n = 10- self.lang = 'en'+ self.language = 'en'def check(self):self.check_positive_integer(self.top_n, "Top N")- self.check_valid_value(self.lang, "Wikipedia languages",+ self.check_valid_value(self.language, "Wikipedia languages",['af', 'pl', 'ar', 'ast', 'az', 'bg', 'nan', 'bn', 'be', 'ca', 'cs', 'cy', 'da', 'de','et', 'el', 'en', 'es', 'eo', 'eu', 'fa', 'fr', 'gl', 'ko', 'hy', 'hi', 'hr', 'id','it', 'he', 'ka', 'lld', 'la', 'lv', 'lt', 'hu', 'mk', 'arz', 'ms', 'min', 'my', 'nl',@@ -52,7 +52,7 @@ class Wikipedia(ComponentBase, ABC):return Wikipedia.be_output(self._param.no)wiki_res = []- wikipedia.set_lang(self._param.lang)+ wikipedia.set_lang(self._param.language)wiki_engine = wikipediafor wiki_key in wiki_engine.search(ans, results=self._param.top_n):try: