llama-index tools wikipedia integration
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file flying_delta_tools_wikipedia-0.1.0.tar.gz
.
File metadata
- Download URL: flying_delta_tools_wikipedia-0.1.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.13 Darwin/23.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67379f89fd478fa55bc34ee79ff4b692b9cb1af5ae4a68f244c218a07d46d39d |
|
MD5 | 7e583f5790b10ac8c4c841545f8816ad |
|
BLAKE2b-256 | b53ca31ed385c56fd44d5cf22e0a30e29633806fd2f7e242b777a71845ee7a8b |
File details
Details for the file flying_delta_tools_wikipedia-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: flying_delta_tools_wikipedia-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.13 Darwin/23.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be82e93ebe44d31c2b4528b090f431e1381fba19d3214439dc59b83144ccd402 |
|
MD5 | c41a9bad523df28e1b62bd2d80d50c09 |
|
BLAKE2b-256 | 67b1bd3a05d9610b8acd833ed2179defc906ed0e19cc7f4c7f4e0a36e3824e4c |