Offline, schema-aware Text-to-SQL engine with optional LLM backends
Project description
Intelligent Text-to-SQL
A zero-cost, offline, schema-aware Text-to-SQL engine using local LLMs.
Features
- No paid APIs
- Works offline (Ollama)
- Schema-aware SQL generation
- Handles ambiguity & hallucinations
- Safe SQL execution
- pip-installable
Installation
pip install -e .
from intelligent_text2sql import Text2SQL
engine = Text2SQL("sqlite:///data/sales.db")
result = engine.run("Show top customers by total purchase")
print(result["sql"])
print(result["data"])
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file intelligent_text2sql-0.1.0.tar.gz.
File metadata
- Download URL: intelligent_text2sql-0.1.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91a7e367e6f377ec7f4a79bbf28f092716a548303bad8dc53c5013f7152b46e4
|
|
| MD5 |
b485a6e5ec72f55414a1bb6f953b31e2
|
|
| BLAKE2b-256 |
cf66ebe974df1f5015171635e801c62283059e9e32a23122f168d06f1095de71
|
File details
Details for the file intelligent_text2sql-0.1.0-py3-none-any.whl.
File metadata
- Download URL: intelligent_text2sql-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c939c25c5afcdc085ae0589330e8611d3e5233e3bd19401eb2d87553f453e583
|
|
| MD5 |
99e7b9c49c7e187a5b9781174b0dfcc1
|
|
| BLAKE2b-256 |
615f9575b6152c9ad7e61f3e603f02ce239450f9f135087eb282d220d8afd87e
|