Skip to main content

Wikipedia

Wikipedia is a multilingual free online encyclopedia written and maintained by a community of volunteers, known as Wikipedians, through open collaboration and using a wiki-based editing system called MediaWiki. Wikipedia is the largest and most-read reference work in history.

Installation and Setupโ€‹

pip install wikipedia

Document Loaderโ€‹

See a usage example.

from langchain_community.document_loaders import WikipediaLoader
API Reference:WikipediaLoader

Retrieverโ€‹

See a usage example.

from langchain.retrievers import WikipediaRetriever
API Reference:WikipediaRetriever

Was this page helpful?