LlamaIndex Readers Integration: Wikipedia
Overview
The Wikipedia Reader reads Wikipedia pages and retrieves their content. It allows you to specify a list of pages to read, and it retrieves the text content of each page.
Installation
You can install the Wikipedia Reader via pip:
pip install llama-index-readers-wikipedia
Usage
from llama_index.readers.wikipedia import WikipediaReader
reader = WikipediaReader()
documents = reader.load_data(pages=["Page Title 1", "Page Title 2", ...])
This loader is designed to be used as a way to load data into
LlamaIndex and/or subsequently
used as a Tool in a LangChain Agent.