Augmented Analytics and LLM-Assisted Analysis

Augmented Analytics & LLM-Assisted Analysis

How AI augments or automates the analytical loop — preparing data, finding insights, answering natural-language questions, and explaining results — instead of a human writing every query and reading every chart. The audience is an analyst, data/BI engineer, or product owner deciding whether and how to put an LLM between users and data, and how to keep the answers correct.

Scope boundary. This skill is about the AI/LLM layer over analytics. It deliberately does not re-teach:

Decision guide (start here)

Situation First reach for Watch out for
“Let business users ask questions in English” Conversational BI on a governed semantic model (Cortex Analyst, Genie, ThoughtSpot) Don’t point raw text-to-SQL at a raw schema — accuracy collapses
Generate SQL from NL over a known DB Text-to-SQL with schema linking + few-shot + execution-guided self-correction Validate by executing; never trust SQL on syntax alone
Multi-step “investigate and explain” Analytics agent (plan→query→analyze→narrate) with a sandboxed code interpreter Bound tool calls; sandbox the Python; cap iterations
“Why did this metric move?” Key-driver / diagnostic insight automation + NLG narrative Significance-test before narrating; avoid spurious “drivers”
Mix numbers + documents in one answer Hybrid RAG (SQL/structured lookup + vector retrieval) Route: structured questions → SQL, not vector search
Anything user-facing with numbers Trust controls: verified queries, faithfulness checks, HITL, lineage LLM-produced numbers must be auditable back to a query

Core concepts

1. Augmented analytics → agentic analytics (the Gartner arc)

Gartner (Rita Sallam, 2017) defined augmented analytics as using ML/AI to assist data preparation, insight generation, and insight explanation to augment how people explore and analyze data. Gartner’s evaluation criteria span six capabilities: ML-assisted insight discovery, NLP/NLQ querying, automated explanations (NLG), data-prep assistance, GenAI integration, and augmented data science.

The 2025 evolution is agentic analytics (Gartner Market Guide for Agentic Analytics, Feb 2025): AI agents that don’t just assist but autonomously plan, investigate, and act. Gartner predicts ~75% of analytics content will use GenAI for contextual intelligence by 2027, evolving toward “autonomous analytics” managing a slice of business processes. The four classic analytics tiers map onto this: descriptive (what happened) → diagnostic (why) → predictive (what will) → prescriptive (what to do) — augmented/agentic analytics automates the first two and increasingly drives toward the latter two.

2. Conversational BI / NLQ

Natural-Language Query (NLQ) turns a plain-English question into a query against governed data, returns a result, a chart, and (via NLG) a written explanation. The non-negotiable lesson of 2024-2026: accuracy depends on grounding the LLM in a governed semantic model, not the raw schema. The semantic layer (see da-18) supplies business term → table/column/metric mappings, relationships, synonyms, and metric definitions so “revenue” always means the same SQL.

3. Text-to-SQL

The research workhorse of LLM-assisted analytics.

4. Analytics agents (plan → query → analyze → narrate)

An analytics agent decomposes a goal into steps, calls tools (SQL, search, a sandboxed Python code interpreter), executes, reflects, and synthesizes a narrative. Pattern: select → aggregate → rank → explain, presented in plain language.

5. Automated insight generation & NLG narratives

6. RAG over structured + unstructured analytical context (hybrid retrieval)

Analytical questions often need both numbers (in tables/warehouse) and context (in docs/metric definitions). Hybrid retrieval combines vector + keyword + metadata filtering:

7. Evaluation, trust & governance

LLM-produced numbers are a correctness problem, not just a fluency one.

Tooling landscape (2025-2026)

Tool What it is Grounding / notable
Snowflake Cortex Analyst / Snowflake Intelligence Managed text-to-SQL + agentic analytics in Snowflake YAML semantic model → Semantic Views; Verified Query Repository; agentic semantic-model improvement (~+20% SQL accuracy)
Databricks AI/BI Genie Conversational analytics in the lakehouse NL→SQL→run→visualize; grounded in Unity Catalog metadata
Tableau Pulse / Tableau Agent Proactive metrics + NLG + anomaly detection (Salesforce) Auto insight/anomaly surfacing; complements dashboards
ThoughtSpot Sage NLQ-first BI, warehouse-independent Connects to Snowflake/BigQuery/Redshift/Databricks
Microsoft Copilot in Power BI NLQ + narrative in Power BI Grounded in the Power BI semantic model; best in MS ecosystem
Vanna Open-source RAG-powered text-to-SQL library Trains on DDL + docs + example SQL; integrates LangChain & LlamaIndex; auto-visualization
LangChain / LlamaIndex SQL agents DIY SQL agents (list tables → inspect schema → iterate) LangChain = orchestration; LlamaIndex = retrieval; both need custom guardrails
Open text-to-SQL models / research AutoLink, RSL-SQL, LitE-SQL, ReFoRCE, Semantic-RAG, CSR-RAG Schema linking, execution-guided self-correction, hybrid retrieval

Choosing: if your data already lives in Snowflake → Cortex Analyst; Databricks lakehouse → Genie; Power BI/Microsoft → Copilot; want warehouse-independent NLQ → ThoughtSpot; building it yourself / embedding → Vanna or a LangChain/LlamaIndex SQL agent.

Practical patterns

  1. Ground before you generate. Put a governed semantic model / verified queries between the LLM and the warehouse. Raw-schema text-to-SQL is a demo, not a product.
  2. Execute to validate. Run (or EXPLAIN/dry-run) generated SQL, feed errors back, and self-correct. Prefer execution accuracy over trusting the text.
  3. Seed a verified-query repository. Curated question→SQL pairs are the single highest-ROI accuracy lever and double as regression tests.
  4. Route by question type. Aggregate/metric questions → SQL; definitional/context → vector RAG; complex/multi-source → agent with code interpreter. Don’t answer numeric questions from a vector store.
  5. Bound the agent. Cap tool calls + self-correction loops, sandbox all code, scope credentials to the user, and log every step for replay/audit.
  6. Narrate only significant insights. Significance-test before NLG; rank drivers; show the waterfall and the supporting query.
  7. Make every number auditable. Surface the generated query + lineage; keep humans in the loop for high-stakes answers.
  8. Build an eval set. Golden NL→SQL→result triples; track EX (not just EM), faithfulness, and metric-consistency over time.

Anti-patterns

Troubleshooting

References