Enterprise NL2SQL with three-layer semantic governance, multi-agent orchestration, and defense-in-depth security.
上周各门店的销售排名是什么?
Store A leads with ¥1.2M sales (+15% WoW) · 15 rows · 340ms
Semantic Governance
A structured semantic layer that transforms raw metadata into governed, auditable knowledge — from schema definitions to compliance rules.
Table schemas, column definitions, metric contracts, join rules, and few-shot NL2SQL examples — version-controlled as YAML, ingested into PostgreSQL.
Business term lifecycle management, bilingual disambiguation, synonym networks, and ambiguity matrices — powered by pgvector embeddings.
Compliance rules, business context assumptions, industry archetypes, and regulatory constraints — enforced via Apache AGE graph traversal.
PG Supernode
One PostgreSQL instance, three retrieval paradigms. Relational precision, vector semantics, and graph governance — unified in a single transaction.
Engine
Structured DDL, metric definitions, join rules, lifecycle tracking in PostgreSQL
Engine
7 embedding types with pgvector — cosine similarity search for fuzzy term matching
Engine
Apache AGE property graph enforces governance boundaries and relationship traversal
Multi-Agent System
LangGraph Supervisor choreographs specialized sub-agents — each optimized for its task with dedicated models, tools, and evaluation gates.
Embedding + governance context
12-type intent classification
6-route intelligent dispatch
R/V/G hybrid search
4-stage RAG post-processing
Code-specialized LLM
7-layer security validation
Auto chart recommendation
Defense in Depth
Every query passes through seven independent security checks — from JWT authentication to result-level PII masking. Fail-safe by default: when in doubt, reject.
Role-based access control + rate limiting
Domain-scoped data access boundaries
PII exposure policy (hidden / masked / visible)
Apache AGE enforces governance joins
SELECT-only whitelist + column validation
Dedicated workgroup + statement timeout
Column-level PII masking (SHA256 / partial)
Capabilities
Smart model routing — DeepSeek for understanding, Qwen3-Coder for SQL, Qwen3-Max for insights. Automatic fallback chains.
Real-time pipeline progress via Server-Sent Events. See each agent step as it happens, not a blank loading screen.
Short-term dialog context, long-term user preferences, and semantic SQL cache with pgvector matching.
On SQL error, auto-detect pattern (missing table, ambiguous column) and compensate with targeted re-retrieval.
Chinese + English semantic understanding. Bilingual term governance, disambiguation, and query rewriting built-in.
Structured JSON logging for every pipeline step — question, retrieval path, SQL, execution, result. S3 archival for compliance.
Transform natural language into governed, auditable SQL queries. Deploy on your own infrastructure with full data sovereignty.