Skip to main content

Llama-index integration with Desearch API for search and data-fetching tools.

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.

Usage

Here's an example usage of the DesearchToolSpec.

# %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_desearch-0.0.2.tar.gz (4.1 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_desearch-0.0.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_desearch-0.0.2.tar.gz.

File metadata

  • Download URL: llama_index_desearch-0.0.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for llama_index_desearch-0.0.2.tar.gz
Algorithm Hash digest
SHA256 3263fb8283b443ef79ca24bfe5e647889c21b42a7855d242f59f235fc2bf43bf
MD5 538f8c3eee59eeca3059a849a3cb31eb
BLAKE2b-256 984eb844e4be703d5e8e749249462aa006a79928ed57136500f03bc8f6cf1432

See more details on using hashes here.

File details

Details for the file llama_index_desearch-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_desearch-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2fb815a004a28a7feee6cc8c5da3cfbb515de69bada559a06220964f8ade4658
MD5 d9ee891a7c011b72cb51c9d7fa61e1e0
BLAKE2b-256 88381e97a4c61d4f2e4c8bf99ffd7f25bbbf556b89c66752b372b1065606be70

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