SOLUTION / AI-AGENTS-LLMS

AI for Data Analysis

Blaron builds AI data analysis tools that let your team ask questions of company data in plain English and get back an answer, a chart, and the SQL that produced it. Answers come from a semantic layer of agreed metric definitions, through read-only access that respects row-level permissions, so people can check the logic before acting on a number.

Best fit: Operations, sales, and finance teams waiting on analysts for routine figures, data teams fielding the same ad hoc questions every week, and companies whose warehouse or database few people can query themselves.

Cancel and refund order 4471Refund prepared, waiting on approval
READSPolicyOrder recordCALLSRefund API
Human approvalSTOPS HERE
The model reads only what it is given, calls only approved tools, and stops before a sensitive action.

What we design around your workflow

Natural language to SQL looks solved in demos and struggles on real warehouses: hundreds of tables, cryptic column names, duplicated logic, and several versions of the same metric. A model can write fluent SQL that runs and returns a wrong number, which is worse than an error. We put business definitions in a semantic layer, show the generated query beside every answer, and design for the questions the system should decline. The aim is faster routine answers, with analysts still owning the hard ones.

Semantic layer

Define metrics, dimensions, joins, and filters once, in a reviewed model the AI queries instead of raw tables.

Question to SQL

Translate each question into SQL against that model, and show the query, tables, and filters with the answer.

Access controls

Run queries through a read-only role that applies each user's row-level permissions and excludes sensitive columns.

Answer checks

Validate queries before they run, test them against known results, and flag answers that look implausible.

Charts and summaries

Return a chart, a table, and a short summary stating the period, filters, and definitions used.

Give the model your definitions, not just your tables

Most wrong answers trace back to ambiguity, not syntax. Churn can be counted by customers or by revenue; an active user might mean a login or a purchase. A semantic layer records each metric's formula, grain, valid dimensions, and approved joins in one reviewed place, with descriptions written for people. The model maps a question onto those names and the layer generates the SQL, so two people asking the same question get the same calculation. Terms the layer cannot match get a clarifying question instead of a guess.

  • One definition per metric

    Give each metric an owner and a formula, and retire duplicates rather than letting the model choose.

  • Descriptions for people

    Describe columns and metrics in business language, since the model reads those descriptions too.

  • Clarify, then answer

    Ask which definition or period is meant when a question is ambiguous.

Run generated SQL read-only, under each user's permissions

OWASP ranks improper output handling as a top LLM application risk and warns that executing LLM-generated SQL without safeguards invites injection. Generated queries are parsed before they run, limited to reads on approved schemas, capped in rows and run time, and executed under a read-only database role. Row-level security then decides what each person sees. In PostgreSQL, policies restrict which rows a user's queries return, but superusers, BYPASSRLS roles, and normally table owners skip them, so the assistant never connects as any of these. Sensitive columns such as salaries stay out of the layer.

  • Parsed before execution

    Reject anything other than reads on approved tables, and cap rows, cost, and run time.

  • Permissions per person

    Carry the asking user's identity to the database, so row policies apply to that person, not a shared account.

  • Columns kept out

    Exclude sensitive fields from the semantic layer instead of trusting the model to avoid them.

Primary sources

Show the work and test the answers

Every answer comes with the SQL, the tables and filters used, the period covered, and the metric definitions applied, so a reader can spot a wrong join or a missing filter. An analyst confirms the correct answers to a set of real questions, and the system is scored on that set after every change to the model, prompts, or semantic layer. Empty results, figures outside expected ranges, and queries touching unusual tables are flagged. Summaries state their assumptions plainly instead of presenting numbers as settled fact.

  • Visible SQL

    Let analysts copy the query, rerun it, and correct it when the logic is wrong.

  • Known-answer tests

    Compare outputs with confirmed results for real questions before each release.

  • Plausibility checks

    Flag totals that jump against history or contradict figures in your existing reports.

Know where text-to-SQL breaks down

Benchmarks show the gap between demos and real schemas. Spider 2.0 was built from enterprise databases, often with over 1,000 columns, in systems such as BigQuery and Snowflake; when it was published in 2024, the strongest agent tested solved about one task in five, far below its scores on older academic benchmarks. If your warehouse has wide tables and unclear column names, expect similar difficulty. We scope the first release to a curated set of tables and questions, measure accuracy there, and widen coverage only as tests pass. Every question and query is logged for review.

  • Curated scope first

    Start with the tables and questions people ask most, and expand as accuracy holds.

  • Logged and governed

    Keep a log of questions, generated SQL, users, and results that the data owner reviews.

  • Scheduled reports elsewhere

    Send recurring reports through a reporting pipeline, and keep this tool for ad hoc questions.

Primary sources

Realistic limits and operator controls

  • Accuracy varies by question

    Simple lookups on well-modeled tables work well; multi-step analysis on messy data still needs an analyst.

  • The layer needs owners

    Metric definitions drift as the business changes, and someone must keep the semantic layer current.

  • Bad data stays bad

    The tool can expose missing or inconsistent data, but cleaning it is separate pipeline work.

Frequently asked questions

How accurate are the answers?

It depends on your schema and questions, so we measure accuracy on real questions with confirmed answers, both pre-release and after every change. The SQL is shown with every answer, so mistakes are visible.

Can it connect to our data warehouse?

Yes, through read-only connections to warehouses and databases such as BigQuery, Snowflake, Redshift, PostgreSQL, and MySQL, using the access controls you already have.

Will people see data they should not?

Queries run with each person's permissions, row-level rules in the database decide which records they see, and sensitive columns are left out of the semantic layer.

Does it replace our analysts or dashboards?

No. It takes routine questions off analysts' desks and complements dashboards. Recurring reports are better served by a scheduled reporting system.

Let your team ask the data directly

Share your database or warehouse, the questions people ask most, the metrics that matter, and who may see what. We will propose a semantic layer scope and a test set to measure answers against.

Start a project