mirror of
https://github.com/langchain-ai/langchain.git
synced 2026-10-05 09:25:14 +03:00
3.4 KiB
3.4 KiB
In [ ]:
#!pip install wikipediaIn [3]:
from langchain.document_loaders import WikipediaLoaderIn [ ]:
docs = WikipediaLoader(query="HUNTER X HUNTER", load_max_docs=2).load()
len(docs)In [ ]:
docs[0].metadata # meta-information of the DocumentIn [ ]:
docs[0].page_content[:400] # a content of the Document