ZeaIQ

SQL Copilot

No conversations yet

Powered by ZeaIQ

AI Configuration

Configure AI providers, models, and prompts for SQL generation

Currently Using Backend Configuration

The prompts shown below are what the backend is currently using. Changes here are saved locally but require backend restart to take effect. The system uses environment variables (OPENAI_API_KEY, AI_MODEL) from your .env file.

Provider & Model (Environment Config)
Currently using: OpenAI GPT-4 (configured via environment variables)

By default, ZeaIQ uses environment variables. Add your own API key to override.

SQL Generation Prompt
Customize the system prompt used to generate SQL queries

This is the actual prompt used in the backend. Uses {CONTEXT} for RAG context and {QUESTION} for user question.

⚠️ Note: Changes require backend code update to take effect. This shows current backend configuration.

Explanation Prompt
Customize the prompt used to explain generated SQL queries

Use {SQL} for the generated SQL query