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
: Searches 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
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
Close
Hashes for llama_index_tools_wikipedia-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91a4566a66946b4dc5b3e909e47d72e1f238f1f8c6cda733f777182da64f8617 |
|
MD5 | b8b721d23cfc8e05fb83bae77e37d51d |
|
BLAKE2b-256 | d2a51a8d77d8ed2edc0f3f91d1d1e258118bbffead1caf234c7c4edccbf83d78 |
Close
Hashes for llama_index_tools_wikipedia-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0f4bd4c8a9c8bb9760440627a4a90a3a8c51de1b852bb5af6f3f1eef20facdf |
|
MD5 | e00899221da40e78271e694baeda9e67 |
|
BLAKE2b-256 | 0eb4f57d71c0895f4f507a7788dcee4e92733c360354168d4547fe0850e2fc4d |