Skip to main content

A tool plugin for LLM to enable web search with Exa

Project description

llm-tools-exa

A tool plugin for LLM that allows you to search the web using Exa.

PyPI Changelog Tests License

Installation

Install this plugin in the same environment as LLM:

llm install llm-tools-exa

Usage

Create an account at Exa and get your API key from this page. Add it to llm with llm keys set exa.

This plugin provides two tools which can be bundled together or provided separately.

Use -T Exa to include both tools, -T web_search for web search only, and -T get_answer for get answer only.

web_search

Search the web for high-quality, relevant results with content and highlights:

llm -m claude-4-sonnet -T web_search "search the web to get today's weather in nyc"

get_answer

Get a direct answer to a question with optional citations:

llm -m claude-4-sonnet -T get_answer "What is the capital of France?"

You can ask the model to include or omit citations, as desired.

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd llm-tools-exa
python -m venv venv
source venv/bin/activate

Install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

Dependencies

  • llm: The LLM CLI tool this plugin extends
  • sqlite-utils: For querying LLM's sqlite databases

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

llm_tools_exa-0.3.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

llm_tools_exa-0.3.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file llm_tools_exa-0.3.0.tar.gz.

File metadata

  • Download URL: llm_tools_exa-0.3.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for llm_tools_exa-0.3.0.tar.gz
Algorithm Hash digest
SHA256 29e231adbd11a4a556b23c2a86e8c817793af2026287026c6dff9f2eda78b603
MD5 ee96f1b5dcae3545be0b86a4c1dfec13
BLAKE2b-256 a4784038c4955ff47002233e032e76b60a459ad7a9b168b45df883698aea6ccb

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_tools_exa-0.3.0.tar.gz:

Publisher: publish.yml on daturkel/llm-tools-exa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llm_tools_exa-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: llm_tools_exa-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for llm_tools_exa-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8840d1a4a1170ccedf5938aa14ce3ffd2a9705f118f79a2532e3148c4a3bd731
MD5 bf97ae31ee5a96c902fcd2ac942a5598
BLAKE2b-256 ebd4a8ae0c94ee11f12c9f07fa9f90076c11dc6a1e4ffae6011f75beb055c49a

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_tools_exa-0.3.0-py3-none-any.whl:

Publisher: publish.yml on daturkel/llm-tools-exa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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