Powering your Copilot for Data - with Artem Keydunov from Cube.dev
Oct 27, 2023 · 43:01
Artem Keydunov, co-founder of Cube (formerly Statsbot), explains how his early text-to-SQL Slack bot in 2016 led to the creation of Cube as a semantic layer, which he argues is now essential for grounding AI models on structured data. Statsbot failed due to the lack of LLMs, relying on regex and custom models, but the underlying Cube framework—an open-source semantic layer defining metrics and dimensions—solved the context problem. Today, semantic layers index data into text descriptions, enabling agents to generate simple queries against the layer instead of complex SQL, reducing errors. Keydunov highlights that natural language querying is becoming a commodity feature in BI tools, but the real value lies in treating metric definitions as code with version control. He advises AI engineers to use a proper warehouse, a semantic layer like Cube, and tools like LangChain, while cautioning that production systems need extra Python code for math and error handling.