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.

Metadata

Release files for flying-delta-tools-wikipedia 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flying-delta-tools-wikipedia 0.1.0
File Size Uploaded
flying_delta_tools_wikipedia-0.1.0.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flying-delta-tools-wikipedia 0.1.0
File Interpreter ABI Platform
flying_delta_tools_wikipedia-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.3 kB

Release files / flying_delta_tools_wikipedia-0.1.0.tar.gz

Download URL flying_delta_tools_wikipedia-0.1.0.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
67379f89fd478fa55bc34ee79ff4b692b9cb1af5ae4a68f244c218a07d46d39d
BLAKE2b-256 checksum
How to use checksums
b53ca31ed385c56fd44d5cf22e0a30e29633806fd2f7e242b777a71845ee7a8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.13 Darwin/23.0.0

Release files / flying_delta_tools_wikipedia-0.1.0-py3-none-any.whl

Download URL flying_delta_tools_wikipedia-0.1.0-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be82e93ebe44d31c2b4528b090f431e1381fba19d3214439dc59b83144ccd402
BLAKE2b-256 checksum
How to use checksums
67b1bd3a05d9610b8acd833ed2179defc906ed0e19cc7f4c7f4e0a36e3824e4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.13 Darwin/23.0.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page