https://github.com/datasette/datasette-enrichments-llm
Enrich data by prompting LLMs
https://github.com/datasette/datasette-enrichments-llm
Last synced: 2 days ago
JSON representation
Enrich data by prompting LLMs
- Host: GitHub
- URL: https://github.com/datasette/datasette-enrichments-llm
- Owner: datasette
- License: apache-2.0
- Created: 2024-12-05T23:33:17.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-12-05T23:38:43.000Z (4 months ago)
- Last Synced: 2025-03-27T03:51:21.333Z (20 days ago)
- Language: Python
- Size: 8.79 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome_ai_agents - Datasette-Enrichments-Llm - Enrich data by prompting LLMs (Building / Datasets)
- awesome_ai_agents - Datasette-Enrichments-Llm - Enrich data by prompting LLMs (Building / Datasets)
README
# datasette-enrichments-llm
[](https://pypi.org/project/datasette-enrichments-llm/)
[](https://github.com/datasette/datasette-enrichments-llm/releases)
[](https://github.com/datasette/datasette-enrichments-llm/actions/workflows/test.yml)
[](https://github.com/datasette/datasette-enrichments-llm/blob/main/LICENSE)Enrich data by prompting LLMs
This is an **early alpha**.
## Installation
Install this plugin in the same environment as Datasette.
```bash
datasette install datasette-enrichments-llm
```
## UsageThe plugin will enable enrichments to be run against any [LLM](https://llm.datasette.io/) model that has an LLM plugin providing [asynchronous support](https://llm.datasette.io/en/stable/plugins/advanced-model-plugins.html#async-models) for that model.
Multi-modal models are supported via the `media_url` parameter.
API keys currently use the default LLM mechanism, probably best set using environment variables.
## Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
```bash
cd datasette-enrichments-llm
python -m venv venv
source venv/bin/activate
```
Now install the dependencies and test dependencies:
```bash
pip install -e '.[test]'
```
To run the tests:
```bash
python -m pytest
```