mirror of
https://github.com/hwchase17/langchain
synced 2024-10-31 15:20:26 +00:00
87e502c6bc
Co-authored-by: jacoblee93 <jacoblee93@gmail.com> Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
29 lines
749 B
Plaintext
29 lines
749 B
Plaintext
# Wikipedia
|
|
|
|
>[Wikipedia](https://wikipedia.org/) 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
|
|
|
|
```bash
|
|
pip install wikipedia
|
|
```
|
|
|
|
|
|
|
|
## Document Loader
|
|
|
|
See a [usage example](/docs/modules/data_connection/document_loaders/integrations/wikipedia.html).
|
|
|
|
```python
|
|
from langchain.document_loaders import WikipediaLoader
|
|
```
|
|
|
|
## Retriever
|
|
|
|
See a [usage example](/docs/modules/data_connection/retrievers/integrations/wikipedia.html).
|
|
|
|
```python
|
|
from langchain.retrievers import WikipediaRetriever
|
|
```
|