Open-source library for local Text-to-SQL pipelines
Top 77.3% on sourcepulse
PremSQL provides a local-first, end-to-end framework for building secure Text-to-SQL pipelines. It empowers developers to create autonomous AI data analysis solutions by offering customizable components for database interaction, query generation, and evaluation, all while keeping data private.
How It Works
PremSQL employs a modular architecture, allowing users to integrate various components for different stages of the Text-to-SQL pipeline. It supports multiple connectors (PremAI, Ollama, HuggingFace, MLX, OpenAI) and offers customizable datasets, robust executors, and advanced generators. Key features include execution-guided decoding for SQL correction and fine-tuning capabilities (LoRA, QLoRA, full fine-tuning) to adapt models to specific databases. The framework also introduces agents for natural language database querying, analysis, and plotting, along with a self-hosted playground for interactive testing.
Quick Start & Requirements
pip install -U premsql
Text2SQLGeneratorPremAI
.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
Text2SQLGeneratorPremAI
, require specific API keys and project IDs.5 months ago
1 day