Skip to main content

Wikipedia Tool

This tool fetches content from wikipedia and makes it available to the agent as a Tool. You can search for pages or load pages directly.

Usage

This tool has more extensive example usage documented in a Jupyter notebook here

from llama_index.tools.wikipedia import WikipediaToolSpec
from llama_index.agent import OpenAIAgent

tool_spec = WikipediaToolSpec()

agent = OpenAIAgent.from_tools(tool_spec.to_tool_list())

agent.chat("Who is Ben Afflecks spouse?")

load_data: Loads a page from wikipedia search_data: Searchs wikipedia for a query and loads all matching pages

This loader is designed to be used as a way to load data as a Tool in a Agent. See this LlamaIndex tutorial for examples.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flying_delta_tools_wikipedia-0.1.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flying_delta_tools_wikipedia-0.1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file flying_delta_tools_wikipedia-0.1.0.tar.gz.

File metadata

File hashes

Hashes for flying_delta_tools_wikipedia-0.1.0.tar.gz
Algorithm Hash digest
SHA256 67379f89fd478fa55bc34ee79ff4b692b9cb1af5ae4a68f244c218a07d46d39d
MD5 7e583f5790b10ac8c4c841545f8816ad
BLAKE2b-256 b53ca31ed385c56fd44d5cf22e0a30e29633806fd2f7e242b777a71845ee7a8b

See more details on using hashes here.

File details

Details for the file flying_delta_tools_wikipedia-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for flying_delta_tools_wikipedia-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be82e93ebe44d31c2b4528b090f431e1381fba19d3214439dc59b83144ccd402
MD5 c41a9bad523df28e1b62bd2d80d50c09
BLAKE2b-256 67b1bd3a05d9610b8acd833ed2179defc906ed0e19cc7f4c7f4e0a36e3824e4c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page