Data-Agent is a suite of AI-powered data query and analysis features in PolarDB for AI. Ask questions in natural language and get SQL-generated results, charts, and business insights — without writing code.
Data-Agent covers the full workflow from question to insight: it converts natural language queries into SQL using a large language model (LLM), runs the SQL against your database, and returns results as summaries or interactive charts.
Key features
-
Natural language to SQL. Ask questions about your data in natural language. Data-Agent performs natural language to SQL (NL2SQL) conversion based on a large language model to generate efficient, reusable SQL statements. After SQL executes against your database, you can summarize the results or generate charts.
-
Two output modes are available depending on the model you invoke:
Interactive charts. Invoke the ai_nl2chart model and Data-Agent automatically selects the most suitable visualization method based on data features and analysis intent, then renders an interactive chart in real time.
Data summaries and insights. Invoke the ai_nl2summary model and Data-Agent distills results into core insights, objectives, and business recommendations.
-
External data sources. PolarDB for AI supports integrating external data sources with Data-Agent, including PostgreSQL, Hive, and Elasticsearch. Run natural language queries against data wherever it lives, without creating tables.