Skip to main content

Ask questions of LLM documentation using LLM

Project description

llm-docs

PyPI Changelog Tests License

Ask questions of LLM documentation using LLM

Installation

Install this plugin in the same environment as LLM.

llm install llm-docs

Usage

This depends on LLM 0.24 or higher.

You can ask questions of the LLM documentation like this:

llm -f docs: 'How do I calculate embeddings for a CSV file?'

For LLM the fragment will contain the exact documentation for the version of LLM you are running.

It also works against other packages that have their documentation recorded in the docs-for-llms repository, for example sqlite-utils:

llm -f docs:sqlite-utils 'How do I vacuum my database?'

For these tools the most recent stable release documentation will be used.

To access the most recent alpha documentation instead use the docs-preview prefix:

llm -f docs-preview:datasette "List all available plugin hooks" -m gemini-2.0-flash

Development

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

cd llm-docs
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

llm install -e '.[test]'

To run the tests:

python -m pytest

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_docs-0.2.1.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

llm_docs-0.2.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file llm_docs-0.2.1.tar.gz.

File metadata

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

File hashes

Hashes for llm_docs-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f2fc87285614fadcbdaa63ebabbe8743f006c42d11851c12bac0352633e467f6
MD5 b8536dc0c111026e5d276835e22c0fa5
BLAKE2b-256 d15726d7dd922719d8fb7e67dfa23e662fbd0a5ebf3af1d73662e02ba4c11cbc

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_docs-0.2.1.tar.gz:

Publisher: publish.yml on simonw/llm-docs

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_docs-0.2.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for llm_docs-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9699447c9f4493c87416667cd8d9afd0492e934821f17161a9040e782dbc12f1
MD5 91415cb585030eeec243d73da10dbae1
BLAKE2b-256 2c7aedca7937fa6b9032230f0cde7bc805a5ae143b28c7ce92a52377f34bc063

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_docs-0.2.1-py3-none-any.whl:

Publisher: publish.yml on simonw/llm-docs

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