LVT
Le Van Truong
All Engineering Systems (18)
Experimental SystemsPrototypeLab System Dossier
Case Study 13 · 2026 · AI Engineer

SPADEs Semantic Data Planner (Zalo AIC)

LLM Agent for Vietnamese Business Question Answering & Executable Query Grounding

An LLM-driven semantic planning and Text-to-SQL/structured query pipeline built for the Zalo AI Challenge Datamate track, translating Vietnamese business analytics questions into schema-grounded, executable relational queries.

Headline Empirical Metrics
Held-Out Diagnostic Set
200 Queries
Vietnamese business analytics benchmark
Executable Plan Rate
24%
Early Qwen3-8B diagnostic run (not final competition score)
02 · Problem Statement

The Technical Bottleneck

Translating ambiguous Vietnamese business questions into executable multi-table queries requires resolving implicit temporal expressions, schema linking, complex aggregations, and type-safe joins.

03 · Research Motivation

Why Existing Baselines Fail

Direct end-to-end Text-to-SQL prompting with small-to-medium open-weight models frequently produces syntax errors or hallucinated column names; decomposing the task into semantic planning and executable validation exposes exactly where reasoning breaks down.

04 · Proposed Approach

Core Formulation & Insight

Built the SPADEs pipeline combining schema grounding, temporal normalization, join/aggregation planning, and post-generation query execution validation with Qwen3-8B, paired with granular error logging over a 200-query held-out diagnostic set.

05 · System Architecture & Pipeline Stages

Architectural Design

Multi-step semantic planner and SQL/query validator for Vietnamese business analytics.

Stage 01

1. Vietnamese Query Understanding & Temporal Normalization

Parses business metrics, time windows, and entity filters from natural-language Vietnamese queries.

Stage 02

2. Schema Grounding & Join Path Planning

Maps extracted intents onto relational table schemas, foreign keys, and aggregation functions.

Stage 03

3. Executable Validation & Diagnostic Logging

Validates generated plans for syntactic executability, schema coverage, and strict typed output accuracy.

06 · Engineering Implementation

Technical Stack & Systems Engineering

Languages
PythonSQL
Frameworks & Libraries
Qwen3-8BStructured Output Validation
Backbone Models
Qwen3-8B
Compute & Storage Infrastructure
200-Query Held-Out Diagnostic Harness

Implementation Highlights

  • →Implemented detailed failure-mode diagnostics separating executable plan generation (24%), schema coverage (20%), and strict typed accuracy (1%) on early Qwen3-8B held-out runs.
07 · Experimental Setup

Datasets & Protocol

Datasets & Corpora

  • 200-Query Held-Out Vietnamese Business Analytics Set (Zalo AI Challenge Datamate)

Evaluation Protocol

Evaluated Qwen3-8B semantic planning across executability, coverage, and strict typed accuracy.

Tracked Evaluation Metrics

Executable Plan RateSchema CoverageStrict Typed Accuracy
08 · Quantitative Results & Analysis

Diagnostic held-out evaluation on 200 complex business queries quantified early Qwen3-8B bottlenecks (24% executable plan rate, 20% coverage), guiding schema-grounding error analysis.

Held-Out Diagnostic Set
200 Queries

Vietnamese business analytics benchmark

Executable Plan Rate
24%

Early Qwen3-8B diagnostic run (not final competition score)

Empirical Analysis & Interpretation

Transparently reporting early diagnostic bottlenecks demonstrates how strict typed evaluation exposes the gap between plausible SQL syntax and exact business-logic execution.

09 · Primary Technical Contributions

What This System Contributes

  • 01Built the semantic planning, schema grounding, and held-out error-analysis pipeline.
10 · Limitations & Scope Constraints

Boundary Conditions & Future Work

  • ·Private competition repository; reported metrics reflect early diagnostic logs rather than a final leaderboard submission.