All AI case studies
Generative AIHR & operations dataProof of concept · client demonstration

Governed 'talk to your data' for enterprise HR and operations

Business users ask questions in plain English and get accurate, access-controlled answers from SQL Server, with every query validated before it runs.

80–90%lower LLM token cost per query vs full-schema prompts
7-stageSQL validation before any query runs
3-tieraccess control: table, column and row

The challenge

Business users depended on IT for every report. Generic AI chat over a database fabricates table and column names, and without strict controls it lets employees see records they shouldn't.

What we built

  • A curated metadata catalog with descriptions, synonyms, approved joins and metrics, so the model never guesses the schema.
  • Vector search retrieves only the 3–4 tables relevant to each question.
  • A 7-stage validator checks every generated query against approved tables, columns, joins and business rules before execution.
  • A deterministic rewriter injects row-level filters so employees only ever see their own records.

Results

  • No SQL knowledge needed to query enterprise data
  • Hallucinated tables, columns and joins blocked before execution
  • Employees can only ever see their own records, regardless of model behaviour
  • New business domains added through configuration, not code
How it works

Step by step.

01

Ask

A user asks a question in plain English.

02

Retrieve

Vector search returns only the relevant, permitted tables.

03

Generate

A locally hosted model writes SQL constrained to that schema.

04

Validate

Seven checks block hallucinated tables, columns, joins and unsafe SQL.

05

Enforce

Row-level filters are injected for the user's role.

06

Answer

Results stream back as a table, chart or summary.

Similar challenge?

Let's see what this could look like for you.

Tell us about your process and systems. We'll outline an approach, the guardrails it needs and a pilot plan.

Contact our team

© Copyrights 2026 by Techno Genesis Software Solutions Pvt. Ltd.

Chat on WhatsApp