Skip to main content

llama-index tools desearch integration

Project description

Here's a README for the Desearch integration, modeled after the example you provided:


LlamaIndex Tools Integration: Desearch

This tool connects to Desearch to enable your agent to perform searches across various platforms like web, Twitter, and more.

To begin, you need to obtain an API key from the Desearch developer dashboard.

Website: https://desearch.io

Usage

Here's an example usage of the DesearchToolSpec.

To get started, you will need an Desearch API key

# %pip install llama-index llama-index-core desearch-py

from llama_index_desearch.tools import DesearchToolSpec
from llama_index.agent.openai import OpenAIAgent

desearch_tool = DesearchToolSpec(
    api_key=os.environ["DESEARCH_API_KEY"],
)
agent = OpenAIAgent.from_tools(desearch_tool.to_tool_list())

agent.chat("Can you find the latest news on quantum computing?")

Available Functions

  • ai_search_tool: Perform a search using Desearch across multiple platforms like web, Twitter, Reddit, etc.
  • twitter_search_tool: Perform a basic Twitter search using the Desearch API.
  • web_search_tool: Perform a basic web search using the Desearch API.

This loader is designed to be used as a way to load data as a Tool in an Agent.


You can copy and paste this into your README file. Let me know if you need any more modifications!

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

llama_index_tools_desearch-0.1.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

llama_index_tools_desearch-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_tools_desearch-0.1.0.tar.gz
Algorithm Hash digest
SHA256 51e0b4ff5c880cd02c3d3008d9e0c3993d9df2a3efcbba8ec0e48cd6e617aecb
MD5 4216270930cecbe53d9813db583e3c04
BLAKE2b-256 4f7eb06ca43926d1fac95f3e76f88cbf291c0f267d0e73c0580b24ca85409325

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_tools_desearch-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38f9cc3db155ca01dfeb3d630990bfca03b4678080617d977a1a63ca92ea3c70
MD5 98c4802441a64ab986b88ade2524c304
BLAKE2b-256 1bf039f91b7dbb8a00d337dc921572b908b1d4ebc66491f42f2b26df6b4a0b88

See more details on using hashes here.

Supported by

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