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-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.2a1.tar.gz (9.6 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.2a1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for datasette_enrichments_llm-0.2a1.tar.gz
Algorithm Hash digest
SHA256 ad1b364850475ddcc8d807e936581a10803f9181ca89e0bb1408f930569410a0
MD5 5fa03d3a1fcc0274a601f33b89a4ee24
BLAKE2b-256 49e0e99da60cc4cfdfdf117f7289d07cbb353780e18bb061d72edbf66f1b1eed

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_enrichments_llm-0.2a1.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.2a1-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_enrichments_llm-0.2a1-py3-none-any.whl
Algorithm Hash digest
SHA256 eefc228f8a4afd706a436b723d8644614c67d67681858536cac737a985cb39f4
MD5 677137b72c01902a998147de9f8dc44e
BLAKE2b-256 f358b48d04bcb2a4a2e261d0cae16a4151edbcf44d47fa670fc81fab74a7367c

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_enrichments_llm-0.2a1-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