EpicIntent
Multi-Stage Text-to-SQL Architecture
The architecture employs Arctic-Text2SQL-R1-7B for simple queries and Qwen3 for complex query handling, including schema selection, join discovery, and answer synthesis. It classifies query complexity to route models effectively, facilitating scaling to 490+ tables with optimized stages like schema compression, reranking, and error recovery. The Multi-Stage Text2SQL Architecture uses the Arctic Model as the specialized SQL generation stage with limited context window.