Ask questions of your data with LLM assistance
Project description
sqlite-utils-ask
Ask questions of your data with LLM assistance
Installation
Install this plugin in the same environment as sqlite-utils.
sqlite-utils install sqlite-utils-ask
Usage
Ask questions of your database like this:
sqlite-utils ask content.db 'How many repos?'
The tool will use an LLM (gpt-4o-mini
by default) to generate the appropriate SQL query by passing through your question and the database schema, and will then execute the query and return the result.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd sqlite-utils-ask
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
python -m pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sqlite_utils_ask-0.1a0.tar.gz
.
File metadata
- Download URL: sqlite_utils_ask-0.1a0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ad85cea573f246b43846723e1cc29036b6ca56dce7780e79c7daadac5ff009e |
|
MD5 | fb4ad72a5b5261762fa65148a936ab09 |
|
BLAKE2b-256 | 946ad238161aacdf26fdc6ecfdd926f3ce1575b5284aed2400ec4fbccd7101a2 |
File details
Details for the file sqlite_utils_ask-0.1a0-py3-none-any.whl
.
File metadata
- Download URL: sqlite_utils_ask-0.1a0-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 229f01ad7e84f185f9989b9deda02925bb9100f57246187bd23e9aa81f9afee7 |
|
MD5 | 093a9609c5fb4c13caffabcd3cc8933f |
|
BLAKE2b-256 | 2eea090eec3b6c89162abed6da55e4d0c61c9cde662fb5c21153c1f1c57d5c62 |