RedParrot: Accelerating NL-to-DSL for Business Analytics via Query Semantic Caching
arXiv cs.AI / 4/28/2026
💬 OpinionDeveloper Stack & InfrastructureIdeas & Deep AnalysisModels & Research
Key Points
- The paper introduces RedParrot, an NL-to-DSL framework designed for real-time, high-accuracy business analytics by reducing latency and cost in LLM pipelines.
- RedParrot accelerates inference with a semantic cache that matches incoming queries to previously built “query skeletons” (normalized structural patterns) and reuses/adapts the associated DSLs.
- It proposes an offline skeleton construction strategy and an online entity-agnostic embedding model trained with contrastive learning to improve robust matching.
- A heterogeneous Retrieval-Augmented Generation (RAG) approach is used to incorporate multiple knowledge sources, enabling the system to handle unseen entities.
- Experiments on six Xiaohongshu enterprise datasets show an average 3.6× speedup and 8.26% accuracy gains, and tests on adapted public benchmarks improve accuracy by 34.8% over standard in-context learning baselines.
Related Articles

Big Tech firms are accelerating AI investments and integration, while regulators and companies focus on safety and responsible adoption.
Dev.to

Everyone Wants AI Agents. Fewer Teams Are Ready for the Messy Business Context Behind Them
Dev.to
How to Build Traceable and Evaluated LLM Workflows Using Promptflow, Prompty, and OpenAI
MarkTechPost
AI 编程工具对比 2026:Claude Code vs Cursor vs Gemini CLI vs Codex
Dev.to

How I Improved My YouTube Shorts and Podcast Audio Workflow with AI Tools
Dev.to