Can Kuvelet · Applied AI and business systems

SMP Intelligence
Technical walkthrough

Two minutes: from a real catalog question to the query checks and public tests behind the prototype.

AI narration with English captions. Edited from real app sessions, with excerpts from the public code. Company part numbers, internal usernames, and Canada, Mexico, US, and VIO values are blurred.

The original prototype

A WPF Windows application using OpenAI-generated query plans and SQL Server. The recording shows the real interface and live results, with sensitive values blurred.

The current public source

The repository now contains sanitized original planning, SQL validation, database execution, and desktop source, with 106 offline tests. The unchanged video shows the earlier sample and its historical 105-test run; that browser demo has been retired.

Read the transcript

00:00 SMP Intelligence makes catalog lookups conversational.

00:05 Here's the real Windows prototype. I ask which parts cross to an original equipment number.

00:14 The matching parts appear in a conversation and a results table.

00:20 Then I ask which vehicles they fit. Part numbers, usernames, and vehicle counts are blurred.

00:28 The SQL tab shows the query proposed by the model. The backend checks it before execution.

00:37 OpenAI proposes SQL. The database returns records, which stay local rather than going back to the model.

00:45 Here's the public validator, adapted from the prototype. It parses the SQL and requires one SELECT statement per result.

00:54 The checks limit which tables, functions, and SQL operations are allowed. Unsupported queries are rejected.

01:04 The order matters. This pipeline validates the entire plan before making any database calls.

01:14 So if the second query fails validation, the first query doesn't run either. No partial execution.

01:23 This test checks exactly that. It supplies an invalid second query, then verifies that the database executor was called zero times.

01:33 All 105 tests passed. They verify specific behaviors, not the accuracy of every AI answer.

01:41 The original uses OpenAI, SQL Server, and WPF. The public sample uses an offline planner and fictional data, without company access.

01:53 Explore the code, run the tests, or try the browser demo. This is a working prototype.

Download the transcript