Documentation Index
Fetch the complete documentation index at: https://nvd-54.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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.
This notebook shows how to retrieve wiki pages from wikipedia.org into the Document format that is used downstream.
集成详情
设置
To enable automated tracing of individual tools, set your LangSmith API key:安装
该集成位于langchain-community 包中。 We also need to install the wikipedia python package itself.
实例化
现在我们可以实例化检索器:WikipediaRetriever parameters include:
- optional
lang: default=“en”. Use it to search in a specific language part of Wikipedia - optional
load_max_docs: default=100. Use it to limit number of downloaded documents. It takes time to download all 100 documents, so use a small number for experiments. There is a hard limit of 300 for now. - optional
load_all_available_meta: default=False. By default only the most important fields downloaded:Published(date when document was published/last updated),title,Summary. If True, other fields also downloaded.
get_relevant_documents() has one argument, query: free text which used to find documents in Wikipedia
用法
API 参考
For detailed documentation of allWikipediaRetriever features and configurations head to the API reference.
连接这些文档到 Claude、VSCode 等工具,通过 MCP 获取实时答案。

