From bloated warehouse to conversational analytics: What we learned at Careem

Mufaddal Jamal28 Oct 2026

Problem

Careem's warehouse grew around a ride-hailing core, with food, grocery and other businesses bolted on. An LLM given the full schema, column descriptions and example queries still wrote confident but wrong SQL, because hundred-column tables named like now_prod_dwh allowed several answers. Analysts avoided the data engineering queue and built personal dev_bi tables. Metric definitions lived in dashboard SQL, so two people could bring different numbers to one meeting.

Example from the article: for customers whose first food order fell in last month's promotion, how many ordered again within fourteen days, by city? The model picked the wrong order-date column, filtered on a nonexistent status value and counted every city twice through a bad join.

Solution in brief

Treat the data, not the model, as the bottleneck. Careem rebuilt the warehouse as isolated domain marts with a naming contract, drove the work with a weighted scorecard, then added an open semantic layer (dbt plus Cube) so metric definitions live outside any BI tool or assistant. Governed agent skills came last.

Questions this case answers
  • How to get consistent, trustworthy answers from a natural-language analytics assistant when the underlying tables are ambiguous, duplicated and inconsistently named
  • How to keep one governed definition of each business metric across BI tools and assistants when definitions live in the SQL of individual dashboards
  • How to make an LLM assistant return the right business number from a large legacy warehouse?
  • How to keep one definition of a metric when dashboards each carry their own SQL?

Tools and methods

  • Domain-driven data marts — one schema per business, split into domains, with a naming contract.
  • Ten-dimension scorecard — weighted definition of "done" for every vertical.
  • Semantic layer (dbt + Cube) — one place for metric definitions and security.
  • Federal metrics — metrics reused across businesses get shared governance.
  • Governed prompts — prompts treated as downstream assets of metrics.
Continue reading — it's free

Google or a one-time email code. No password.