Engineering notes.

Write ups from real builds, including the systems on this site. What the architecture was, what broke, and what we would do again. Each note is written by the engineers who did the work.

Entries
16
Latest
Written by
Baraqix Engineering
Feed
RSS

Notes · every note is in the field
One constellation per note, placed by the model
Hover a row to light its passages

  1. NOTE/05

    How NL2SQL resolves joins without guessing

    How a breadth first search over the foreign key graph finds the join path in an NL2SQL system, so the model never writes a join condition. It covers the three tiers, ambiguous paths, read only access and when to ask the user.

    data, build notes8 min read

    Architecture diagram of a natural language to SQL pipeline: a question goes through intent detection and schema linking, then three tiers tried cheapest first (template match, guided generation, full generation), a join path resolver that walks the foreign key graph breadth first, a validation and read only guard, and Postgres, with the answer returned alongside its SQL. An inset shows the schema graph from customers through orders and order_items to products.

New notes also go out by RSS, the moment they are published, and into the search index the moment they are published too.

Book a free call