Skip to main content

Enrich data by prompting LLMs

Project description

datasette-enrichments-llm

PyPI Changelog Tests License

Enrich data by prompting LLMs

This is an early alpha.

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-enrichments-llm

This plugin depends on datasette-llm for LLM model management, API key handling, and model provider integration. See the datasette-llm README for instructions on installing model providers and configuring API keys.

Configuration

datasette-enrichments-llm registers an enrichments purpose with datasette-llm. You can optionally configure which models are available and set a default model for enrichments using datasette-llm's purpose-specific configuration:

plugins:
  datasette-llm:
    purposes:
      enrichments:
        model: gpt-5.4-mini
        models:
        - gpt-5.4-mini
        - gpt-5.4-nano
        - claude-opus-4.6

Usage

Enrichments can be run against any LLM model that has an LLM plugin providing asynchronous support for that model.

Multi-modal models are supported via the media_url parameter.

Development

To set up this plugin locally, first checkout the code. Run the tests like this:

cd datasette-enrichments-llm
uv run pytest

To try the plugin:

echo 'id,name\n1,Bob\n2,Kate' | uvx sqlite-utils insert data.db people - --csv

Then:

uv run datasette --root --secret 1 data.db

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

datasette_enrichments_llm-0.2a0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

datasette_enrichments_llm-0.2a0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file datasette_enrichments_llm-0.2a0.tar.gz.

File metadata

File hashes

Hashes for datasette_enrichments_llm-0.2a0.tar.gz
Algorithm Hash digest
SHA256 503a168fb8d368e21e456a4f791e676a96b2da368c0bab16d2a0541d4b5b0bb9
MD5 3f508410126e640cdb9163ffbfac6b3c
BLAKE2b-256 4ab51008f756209d3cb749a06d7cc1e520aed548e76d46c7a9e45ed834ba98e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_enrichments_llm-0.2a0.tar.gz:

Publisher: publish.yml on datasette/datasette-enrichments-llm

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

File details

Details for the file datasette_enrichments_llm-0.2a0-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_enrichments_llm-0.2a0-py3-none-any.whl
Algorithm Hash digest
SHA256 b0134e48adbeee8567fed16b6916841843596341b43bfa43fe2436009abeec05
MD5 0ab6f5d24a57a0ed219f522bfdc3271d
BLAKE2b-256 6ee533332d39d2f3bfc8b1144aecc2e1d193f9d4ac47b552d76380da74941f06

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_enrichments_llm-0.2a0-py3-none-any.whl:

Publisher: publish.yml on datasette/datasette-enrichments-llm

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