From a4289c073d29aa3be205031b668f0e6220f9c4f8 Mon Sep 17 00:00:00 2001 From: bleakview <15088392+bleakview@users.noreply.github.com> Date: Sun, 13 Aug 2023 23:51:39 +0300 Subject: [PATCH] missing import added (#463) --- llama_hub/tools/wikipedia/base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/llama_hub/tools/wikipedia/base.py b/llama_hub/tools/wikipedia/base.py index e8e0541973..0799bf9131 100644 --- a/llama_hub/tools/wikipedia/base.py +++ b/llama_hub/tools/wikipedia/base.py @@ -44,6 +44,7 @@ def search_data(self, query: str, lang: str = "en") -> List[Document]: Args: query (str): the string to search for """ + import wikipedia pages = wikipedia.search(query) if len(pages) == 0: return "Unable to find any details on this search"