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.
  2. NOTE/03

    Why the AI prototype is not production ready, and what is missing

    A prototype proves the model can do the task once, with someone watching. This checklist covers what it still needs before real users touch it, from the evaluation set to the handover.

    agents, build notes8 min read

    Architecture diagram of a WhatsApp assistant and CRM for an insurance agency: a customer messages through the WhatsApp Business API, an AI assistant answers and writes leads, policies and follow ups to the CRM, scheduled follow ups go back out through WhatsApp, and a human handoff passes the conversation to agency staff.
  3. NOTE/02

    How the search on this site works

    The search console on the home page is the retrieval layer of a RAG system with no external API behind it. This is what runs when you press enter, why it is retrieval only, and why a few hundred dot products beat a vector database at this size.

    rag, search, build notes7 min read

    Architecture diagram of the site search: a query is embedded by a self hosted MiniLM model, scored by cosine similarity against an in memory index of site chunks, and the top passages are returned with their source.
  4. NOTE/01

    An AI voice agent for restaurant phone orders that asks instead of assumes

    A build note on an AI voice agent that answers a restaurant's phone and takes orders: the Twilio and speech model architecture, the guardrail for abusive callers, the allergy flow that asks on every call, what it connects to, and what is still demo stage.

    voice, agents, build notes8 min read

    Architecture diagram of the phone ordering agent: a caller reaches a Twilio number, audio streams to a Node.js server and a speech model, an order state machine looks up the menu and availability, and guardrails sit on both sides of the conversation.

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