Schemagate
Text-to-SQL access control: schema selection that gives the LLM only the tables the caller is allowed to read. Row-level-security-aware table pruning for LangCh…
Schemagate shows the model only the tables the caller may read, before any SQL exists. Schemagate cuts prompt tokens by 65–97%. Schemagate works with any SQLAlchemy database.
Schemagate can be installed via pip install schemagate. Schemagate offers a studio demo that runs entirely in the browser with no database connected. Schemagate supports AI models from Anthropic, OpenAI, Gemini, or OCI.
Schemagate can be used from the command line. Schemagate can be used from Python.
Summary drafted from the project's own website. Every sentence is backed by text on that page and was reviewed before publishing.