跳转到内容
Agentic Workflowdocs
v0.8.2免费安装

节点 / builtin / ai / aidependencies / tools

Wikipedia Query

Query Wikipedia for information on a given topic.

AI 扩展程序网页应用智能体工具

此内容尚不支持你的语言。

Let an AI agent look up a topic on Wikipedia and read the article summaries.

Wikipedia Query is a tool for an agent, not a step in the flow. It has no output port: you connect it to the Tools slot of a Tools Agent.

When the agent calls it with a search term, the tool searches English Wikipedia, takes the top matching articles and returns each one as Page: <title> followed by its summary. By default it returns 3 articles and cuts the whole text at 4,000 characters. If nothing matches, the model gets “No good Wikipedia Search Result was found”.

It only reads public Wikipedia, so no approval or credential is needed.

  • The agent needs background facts: who someone is, what a term means, when something happened.
  • You want well-known, stable facts rather than the latest news.

For current information, use Web Search. To answer from your own documents, connect a knowledge base to the Tools Agent’s Knowledge slot instead.

设置项类型作用
Top K Results NumberThe number of top results to return.
Max Document Content Length NumberThe maximum length of the document content.
  • Top K Results: how many articles to read per search. Empty means 3.
  • Max Document Content Length: the maximum number of characters returned in total, across all articles. Empty means 4,000. Raise it for more detail, lower it to keep runs cheaper.

This node has no output port. It plugs into a slot on another node instead of passing items along.

The summaries go back to the model, not to the next node. The agent’s steps output lists each lookup, and its response holds the final answer.

None. This node needs no connection and has no slots for other nodes.

  1. Get Selected Text reads a name you highlighted in an article, with Output field name text.
  2. Tools Agent with Prompt Who or what is {{ $input.text }}? Answer in three sentences., a Chat OpenAI model in Model, and Wikipedia Query connected to Tools with Top K Results 2.
  3. Display Markdown shows {{ $input.response }}.
  • “No good Wikipedia Search Result was found”. The search term matched no article. Ask the agent to use shorter, more general terms, or check the spelling.
  • The answer stops mid-way or misses details. The text was cut at Max Document Content Length. Raise it, or lower Top K Results so each article gets more room.
  • Results are in English for a non-English topic. The tool always searches English Wikipedia. Ask the agent to translate its answer.
编辑此页

最近更新:

Was this page useful?
向 Aria 询问“Wikipedia Query”