Mnemiq

•
83
•

Translates natural language questions into SQL queries, providing a tunable engine you can measure on your specific database.

Mnemiq is an open-source, Apache-2.0 text-to-SQL engine designed to answer natural-language questions over your database. It offers unparalleled transparency by making every stage of the query pipeline configurable, allowing users to tune and measure its performance on their unique data environment. The engine employs a deterministic 'decider' that validates proposed SQL queries for safety, permissions, and dialect compilation before execution, ensuring accurate and verifiable results. With a multi-tier semantic layer and a built-in evaluation harness that grades by data returned, Mnemiq empowers users to confidently deploy and optimize text-to-SQL solutions that truly align with their business needs, supporting various databases and OpenAI-compatible LLMs.

主要功能

01Built-in evaluation harness grades results by data returned, distinguishing right, refused, and wrong answers
02Tunable text-to-SQL pipeline with configurable LLM, schema context, and semantic enrichment
0342 GitHub stars
04Deterministic decider validates SQL for safety, permissions, and compilation before execution
05Compatibility with Postgres, Oracle, Snowflake, Databricks, and any OpenAI-compatible LLM endpoint
06Multi-tier semantic layer for schema profiling, structural analysis, and LLM-proposed definitions

使用案例

01Answering natural language questions directly against enterprise databases with verifiable results
02Integrating a governed and auditable text-to-SQL capability into AI agents and applications
03Benchmarking and fine-tuning text-to-SQL engine performance on custom datasets and schemas