Hermes: Swiggy's in-house Text-to-SQL solution enables natural language data queries in Slack
Swiggy teams needing specific data had to either find an existing dashboard, write SQL themselves (requiring table knowledge, access, and SQL skills), or submit an analyst request — all taking minutes to days — causing important questions to go unasked or to be answered with proxy or incorrect information.
The V1 implementation using GPT 3.5 variants with a kitchen-sink approach — treating all business needs and data as the same — did not perform well against the complexity and volume of Swiggy's tables, columns, and business-specific context.
Hundreds of users across Swiggy answer several thousand queries with an average turnaround time of less than 2 minutes, and the first-shot acceptance rate for generated SQL increased dramatically after the V2 launch.
Show all 5 reported metrics
Frequently asked questions
What did this team achieve with this AI workflow?
Hundreds of users across Swiggy answer several thousand queries with an average turnaround time of less than 2 minutes, and the first-shot acceptance rate for generated SQL increased dramatically after the V2 launch.
What tools did this team use?
GPT 3.5, GPT-4o, Slack, AWS Lambda, Databricks, Snowflake, Alation.
What results were reported?
Average query turnaround time: <2 minutes; User adoption: Hundreds of users across the company; Queries answered: several thousand queries; first-shot SQL acceptance rate: increased dramatically (source-reported, not independently verified).
What failed first in this deployment?
The V1 implementation using GPT 3.5 variants with a kitchen-sink approach — treating all business needs and data as the same — did not perform well against the complexity and volume of Swiggy's tables, columns, and bu…
How is this back office ops AI workflow structured?
User submits question in Slack → Lambda middleware formats input → Metrics retrieval via RAG → Table and column retrieval → Structured prompt and SQL generation → Query validation with retries → Results returned to user → User feedback collection.