WikipediaReader#

pydantic model llama_index.readers.WikipediaReader#

Wikipedia reader.

Reads a page.

Show JSON schema
{
   "title": "WikipediaReader",
   "description": "Wikipedia reader.\n\nReads a page.",
   "type": "object",
   "properties": {
      "is_remote": {
         "title": "Is Remote",
         "default": true,
         "type": "boolean"
      },
      "class_name": {
         "title": "Class Name",
         "type": "string",
         "default": "WikipediaReader"
      }
   }
}

Config
  • arbitrary_types_allowed: bool = True

Fields
  • is_remote (bool)

field is_remote: bool = True#
classmethod class_name() str#

Get the class name, used as a unique ID in serialization.

This provides a key that makes serialization robust against actual class name changes.

load_data(pages: List[str], **load_kwargs: Any) List[Document]#

Load data from the input directory.

Parameters

pages (List[str]) – List of pages to read.