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.

get_contents

Get the contents of a webpage as markdown:

llm -m claude-4-sonnet -T get_contents "What's on the homepage of nytimes.com

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.5.0.tar.gz (5.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.5.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for llm_tools_exa-0.5.0.tar.gz
Algorithm Hash digest
SHA256 e546b59ec22d6949105b8e51a582d1f0c1592b460aae051acbf78d2c34f15570
MD5 20d1e6365d298686fb022f72f98ff3f4
BLAKE2b-256 8d06c5bfc25be1f643657922166b10b33bbcb2f43d2ae34a8eb69fa424c3f709

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_tools_exa-0.5.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.5.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for llm_tools_exa-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c86cbe9947ab1d9f7434fdf832c56796e05a2d6986851238d0d4858f0488ade1
MD5 ffa4e567cdbe53aa7411a1bf934ab23a
BLAKE2b-256 5b0afb2dcda2d3d3fc6f7f10a08ce5647df1dcf51d64b15f2f65e885e06ee94d

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_tools_exa-0.5.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