| 40 | |
| 41 | class WikipediaWorker(Node): |
| 42 | def __init__(self, name="Wikipedia", docstore=None): |
| 43 | super().__init__(name, input_type=str, output_type=str) |
| 44 | self.isLLMBased = False |
| 45 | self.description = "Worker that search for similar page contents from Wikipedia. Useful when you need to " \ |
| 46 | "get holistic knowledge about people, places, companies, historical events, " \ |
| 47 | "or other subjects. The response are long and might contain some irrelevant information. " \ |
| 48 | "Input should be a search query." |
| 49 | self.docstore = docstore |
| 50 | |
| 51 | def run(self, input, log=False): |
| 52 | if not self.docstore: |