ARTFEED — Contemporary Art Intelligence

RedParrot: Accelerating NL-to-DSL for Business Analytics via Query Semantic Caching

ai-technology · 2026-04-29

Researchers at Xiaohongshu have developed RedParrot, a framework that accelerates the conversion of natural language queries into domain-specific languages (DSLs) for business analytics. The system uses a semantic cache to bypass costly multi-stage LLM pipelines by matching new requests against cached query skeletons—normalized structural patterns—and adapting their corresponding DSLs. This addresses the high latency, cost, and error propagation issues in existing NL-to-DSL systems, which are unsuitable for enterprise-scale deployment. The core technical contributions include offline skeleton extraction, online skeleton matching, and DSL adaptation. The work is published on arXiv.

Key facts

  • RedParrot is a framework for NL-to-DSL conversion in business analytics.
  • It was developed at Xiaohongshu.
  • It uses a semantic cache to accelerate inference.
  • It bypasses multi-stage LLM pipelines by matching requests against cached query skeletons.
  • The system reduces latency, cost, and error propagation.
  • Core contributions: offline skeleton extraction, online skeleton matching, DSL adaptation.
  • The paper is available on arXiv with ID 2604.22758.
  • The work addresses real-time analytics demands in e-commerce and advertising.

Entities

Institutions

  • Xiaohongshu
  • arXiv

Sources