<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Asadullah Yousaf — AI Engineering Notes</title>
    <link>https://asadullahyousaf.com/blog/</link>
    <atom:link href="https://asadullahyousaf.com/feed.xml" rel="self" type="application/rss+xml" />
    <description>Healthcare AI, RAG pipelines, agentic workflows and full-stack AI delivery from real projects.</description>
    <language>en</language>
    <lastBuildDate>Tue, 01 Dec 2026 00:00:00 GMT</lastBuildDate>
    <item>
      <title>Building a Proactive AI Health Agent: Lessons From Production</title>
      <link>https://asadullahyousaf.com/blog/proactive-ai-health-agent-lessons/</link>
      <guid isPermaLink="true">https://asadullahyousaf.com/blog/proactive-ai-health-agent-lessons/</guid>
      <pubDate>Tue, 01 Dec 2026 00:00:00 GMT</pubDate>
      <dc:creator>Asadullah Yousaf</dc:creator>
      <description>What makes an AI health agent proactive (profile, guidelines, urgency, specialist routing, booking) and the four quiet failures that matter most in production.</description>
      <category>healthcare AI</category>
      <category>AI agents</category>
      <category>agentic workflows</category>
      <category>patient safety</category>
      <category>HIPAA</category>
      <content:encoded><![CDATA[<p><strong>TL;DR:</strong> A proactive AI health agent doesn't just answer questions. It uses the patient's profile, searches the clinic's own guidelines, judges urgency, recommends a specialist and requests appointments. That makes it more useful, and it raises the stakes of four quiet failures: an access path your patient-data agreement may not cover, deletion that doesn't delete, duplicate messages from retries, and confident answers where the agent should escalate.</p><p>Most health chatbots answer questions. The one I&#39;ve been building takes the next step. It&#39;s a <strong>proactive AI health agent</strong> for a global health-tech company: when a patient describes a symptom, it doesn&#39;t stop at an answer. It checks their profile, searches the clinic&#39;s guidelines, judges urgency, recommends the right specialist and requests the booking.</p>
<p>Building an agent that <em>acts</em> taught me that the hard parts of healthcare AI are rarely the model. They&#39;re the quiet failures: problems that don&#39;t crash anything, don&#39;t show up in a demo, and only matter on the day they matter a lot. This post explains what &quot;proactive&quot; means in practice and introduces the four quiet failures this series covers.</p>
<h2 id="what-does-proactive-mean-in-an-ai-health-agent">What does &quot;proactive&quot; mean in an AI health agent?</h2>
<p>A proactive AI health agent works out the next useful step and takes it, within the conversation the patient started. Here is the difference in practice:</p>
<div class="table-wrap"><table><thead><tr><th>A chatbot…</th><th>A proactive agent…</th></tr></thead><tbody><tr><td>Answers the question asked</td><td>Works out the next useful step</td></tr><tr><td>Forgets between conversations</td><td>Remembers key profile facts (age, conditions, allergies, medications)</td></tr><tr><td>Uses general knowledge</td><td>Searches the clinic's own guidelines first, and says when it can't find them</td></tr><tr><td>Says "see a doctor"</td><td>Recommends the right specialty and finds a doctor</td></tr><tr><td>Leaves booking to the patient</td><td>Checks existing appointments, then requests a booking</td></tr><tr><td>Treats every message the same</td><td>Sorts urgency and escalates emergencies immediately</td></tr></tbody></table></div><p>Under the hood, the agent has tools for patient context, knowledge-base search, doctor search, listing appointments and requesting bookings, plus per-user memory. The model decides <em>when</em> a tool is useful; the tools themselves are plain, tested code.</p>
<h2 id="how-do-you-keep-a-proactive-agent-from-being-pushy">How do you keep a proactive agent from being pushy?</h2>
<p>Being proactive doesn&#39;t mean doing more by default. A health agent that calls every tool on every message is slower, more expensive and more intrusive. The rules we hold the agent to:</p>
<ol>
<li><strong>Tools only when needed.</strong> No profile lookups for &quot;hi&quot; or &quot;thanks&quot;.</li>
<li><strong>At most 2–3 focused questions per turn.</strong> Patients describing symptoms are often anxious; a wall of questions doesn&#39;t help.</li>
<li><strong>Check, then ask, then act.</strong> Before booking, the agent checks existing appointments and confirms with the patient.</li>
<li><strong>Guidance, never diagnosis.</strong> The agent explains, routes and escalates. It does not diagnose or prescribe.</li>
<li><strong>Escalation beats helpfulness.</strong> When symptoms sound urgent, the agent stops the normal flow and points the patient to emergency care.</li>
</ol>
<p>These rules matter as much as the tools. Without them, &quot;proactive&quot; quickly becomes &quot;presumptuous&quot;.</p>
<h2 id="what-are-the-four-quiet-failures-in-healthcare-ai">What are the four quiet failures in healthcare AI?</h2>
<p>Quiet failures are problems that look fine in testing and in logs, but carry real risk for patients and for the company. These are the four I&#39;d check first in any AI product that handles patient data.</p>
<h3 id="1-the-access-path-not-the-model">1. The access path, not the model</h3>
<p>The same model can often be reached through more than one path: an enterprise cloud project covered by your patient-data agreement (a BAA under HIPAA), or a quick API key created while prototyping. The answers are identical, so nobody notices which door production walks through. Next week&#39;s post covers how we caught and closed this.</p>
<h3 id="2-deleted-isnt-deleted">2. &quot;Deleted&quot; isn&#39;t deleted</h3>
<p>When a patient asks to delete their data, the database row is the easy part. Conversations also live in uploaded files, logs, analytics events, vector stores and the agent&#39;s memory. Real erasure means mapping every place patient data lands, and proving each one is cleared.</p>
<h3 id="3-retries-create-ghosts">3. Retries create ghosts</h3>
<p>Mobile networks drop. Apps retry. Without an idempotency key on each message, one patient message can be stored, and answered, twice. Duplicate messages confuse the conversation history; duplicate <em>actions</em>, like booking requests, cause real problems.</p>
<h3 id="4-confident-isnt-safe">4. Confident isn&#39;t safe</h3>
<p>A fluent, well-structured answer to a description of chest pain is still a failure if it doesn&#39;t send the patient to emergency care. Clinical safety has to be designed in: explicit red-flag rules, escalation paths and tests for them, not only a polite system prompt.</p>
<h2 id="why-does-a-proactive-agent-raise-the-stakes">Why does a proactive agent raise the stakes?</h2>
<p>A proactive agent reads more data, stores more memory and takes real actions. That makes each quiet failure more expensive:</p>
<ul>
<li>More data read means more patient data flowing through the model access path.</li>
<li>More memory means more places deletion has to reach.</li>
<li>Real actions mean retries can duplicate bookings, not just messages.</li>
<li>More autonomy means a missed escalation is a missed step the patient was relying on.</li>
</ul>
<p>None of this is a reason not to build proactive agents. It&#39;s a reason to treat these four checks as launch requirements, not polish.</p>
<h2 id="what-does-this-series-cover">What does this series cover?</h2>
<p>Each post takes one real problem from building healthcare AI: what went wrong or nearly went wrong, how it was found, the fix, and a rule you can reuse in your own product. Topics include model access paths and BAAs, editing and syncing chat messages safely, writing a clinical-safety prompt, patient vs. user identity, real data erasure, keeping patient data out of logs, and validating medical uploads.</p>
<p>If you&#39;re building an AI assistant that touches patient data, the free <a href="/#newsletter">Healthcare AI Launch Checklist</a> covers 15 things to check before launch, including all four failures above. And if you&#39;d like a second pair of eyes on your product, see the <a href="/services/">Healthcare AI Safety Review</a> or read how the <a href="/projects/proactive-ai-health-agent/">Proactive AI Health Agent</a> was built.</p>
<p><em>Engineering guidance, not legal advice.</em></p>
]]></content:encoded>
    </item>
    <item>
      <title>AI Receptionist Design: The LLM Writes, Code Decides</title>
      <link>https://asadullahyousaf.com/blog/ai-receptionist-llm-writes-code-decides/</link>
      <guid isPermaLink="true">https://asadullahyousaf.com/blog/ai-receptionist-llm-writes-code-decides/</guid>
      <pubDate>Mon, 30 Nov 2026 00:00:00 GMT</pubDate>
      <dc:creator>Asadullah Yousaf</dc:creator>
      <description>How Deskly answers every inbound lead in under a minute without letting the LLM make business decisions: deterministic scoring, booking, escalation and handoff.</description>
      <category>agentic workflows</category>
      <category>AI receptionist</category>
      <category>Mastra</category>
      <category>multi-tenant SaaS</category>
      <category>lead qualification</category>
      <content:encoded><![CDATA[<p><strong>TL;DR:</strong> A reliable AI receptionist lets the language model write the replies but keeps every business decision in tested code: lead scoring, owner assignment, booking, escalation and human handoff. In Deskly's live demo this gave a 13-second median first reply, with 91% of leads answered within a minute.</p><p>Small service businesses lose leads in three predictable ways: the reply comes too late, each staff member asks different questions, and nobody clearly owns the lead. Deskly is an AI receptionist I built to fix all three. It replies to every inbound lead in under 60 seconds on WhatsApp, Instagram, web forms and missed calls, qualifies the lead, scores it Hot, Warm or Cold, assigns one named owner and books the appointment.</p>
<p>The design rule that made it reliable is simple: <strong>the LLM writes the words, tested code makes the decisions.</strong> This post explains why, and how the pieces fit.</p>
<h2 id="why-shouldnt-the-llm-make-the-decisions">Why shouldn&#39;t the LLM make the decisions?</h2>
<p>Language models are good at conversation and bad at being consistent. Ask the same model to score the same lead twice and you can get two answers. For a business that is unacceptable: a Hot lead marked Cold is lost revenue, and a booking outside real opening hours is an angry customer.</p>
<p>So Deskly splits the work:</p>
<div class="table-wrap"><table><thead><tr><th>Job</th><th>Done by</th><th>Why</th></tr></thead><tbody><tr><td>Writing replies in the business's voice, in English or Arabic</td><td>LLM (Gemini via Mastra)</td><td>Natural language is what models are good at</td></tr><tr><td>Asking the next qualifying question</td><td>Deterministic workflow</td><td>Every lead must answer the same questions</td></tr><tr><td>Scoring Hot / Warm / Cold</td><td>Pure function</td><td>Same input, same score, unit-tested</td></tr><tr><td>Assigning the owner</td><td>Pure function</td><td>Rule-based by service, auditable</td></tr><tr><td>Booking a slot</td><td>Pure function over real hours, staff and service duration</td><td>Never books an impossible slot</td></tr><tr><td>Escalating when nobody acts</td><td>Durable scheduled job (Inngest)</td><td>Must fire even if the server restarts</td></tr></tbody></table></div><p>The scoring, assignment, opening hours, escalation and lead lifecycle logic lives in a pure domain package shared by the dashboard, the agent and the background jobs. Because those are plain functions, they are tested like any other code instead of being &quot;prompted&quot; into behaving.</p>
<h2 id="how-does-a-lead-flow-through-the-system">How does a lead flow through the system?</h2>
<ol>
<li><strong>Lead arrives</strong> on WhatsApp, Instagram, the web form or as a missed call.</li>
<li><strong>Webhook is verified</strong> (Twilio signature), stored and acknowledged, then handed to the agent with a shared secret.</li>
<li><strong>AI replies within seconds</strong>, as the business, in the lead&#39;s language.</li>
<li><strong>Qualifying questions</strong> are asked one at a time, always the same set, configured per business in settings.</li>
<li><strong>Score</strong> is computed from the answers: Hot, Warm or Cold.</li>
<li><strong>One owner</strong> is assigned by service.</li>
<li><strong>Booking</strong> is offered from real availability, with confirmations, reminders and no-show follow-ups.</li>
<li><strong>Escalation</strong>: if the owner does not act, a timed staff reminder fires, then a manager alert.</li>
</ol>
<p>The ordering matters. Acknowledging the webhook before the agent runs means a slow model call never makes the channel provider retry and create duplicates.</p>
<h2 id="what-happens-when-a-human-needs-to-step-in">What happens when a human needs to step in?</h2>
<p>Some conversations should never be handled by an AI. In a clinic, the obvious one is a medical question. Deskly&#39;s agent refuses medical advice and hands the conversation to staff. While staff are in the conversation the agent stays paused, and it resumes automatically when staff hand it back.</p>
<p>Guardrail evals run against the agent to check two things it must never do: give medical advice, and invent prices. Prices come from the business&#39;s own service settings, not from the model.</p>
<p>In the live demo, 1 of 11 leads (9%) was handed to a person, for a medical question or complaint. That is the handoff working as designed, not a failure.</p>
<h2 id="how-is-each-businesss-data-kept-separate">How is each business&#39;s data kept separate?</h2>
<p>Deskly is multi-tenant: many businesses on one deployment. Tenant isolation is enforced by <strong>Postgres Row-Level Security</strong> (through Drizzle on Supabase) and covered by RLS integration tests. The model never chooses the tenant: the system fixes it, and because the database itself enforces isolation, even a misbehaving agent cannot read another business&#39;s leads.</p>
<p>Replies to test leads are also blocked from ever reaching a real phone, which makes it safe to demo and test on the live system.</p>
<h2 id="what-were-the-results">What were the results?</h2>
<p>Deskly was demoed with a fictional business, Glow Aesthetic Clinic in Dubai. Over the last seven days of the live demo:</p>
<ul>
<li><strong>Median first reply: 13 seconds.</strong> 91% of leads were answered within a minute.</li>
<li><strong>36% of leads booked</strong> (4 of 11) in the same window.</li>
<li><strong>9% handed to a person</strong> (1 of 11), for a medical question or complaint.</li>
</ul>
<p>The sample is small and it is a demo business, so treat these as proof the system behaves as designed, not as a conversion benchmark.</p>
<p>On the engineering side: about 22,000 lines of TypeScript across 2 apps and 5 packages, built over 11 milestones, with 27 test files plus a Playwright end-to-end test running against the live site.</p>
<h2 id="what-would-i-do-the-same-way-next-time">What would I do the same way next time?</h2>
<ul>
<li><strong>Decide the deterministic core first.</strong> Write scoring, assignment and booking as pure functions before writing a single prompt.</li>
<li><strong>Put isolation in the database</strong>, not in the prompt or the application layer alone.</li>
<li><strong>Use durable jobs for anything time-based.</strong> Reminders and escalations that silently die on a restart are worse than none.</li>
<li><strong>Write guardrail evals for the things that would embarrass the business</strong>, starting with advice the business is not allowed to give and prices it never quoted.</li>
</ul>
<p>Next on the roadmap is Instagram DM and comment triage: filtering incoming messages by keyword or intent, queuing anything borderline for staff approval, then engaging automatically once approved.</p>
<p>See the <a href="/projects/deskly/">Deskly case study</a> for screenshots, the full stack and the demo video, or try the <a href="https://deskly.asadullahyousaf.com">live demo</a>. For the retrieval side of agent systems, read <a href="/blog/multilingual-youtube-rag-architecture/">Multilingual YouTube RAG: Architecture Notes</a>.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Building an Audit-First Hospital Management System</title>
      <link>https://asadullahyousaf.com/blog/hospital-management-system-audit-trail/</link>
      <guid isPermaLink="true">https://asadullahyousaf.com/blog/hospital-management-system-audit-trail/</guid>
      <pubDate>Mon, 30 Nov 2026 00:00:00 GMT</pubDate>
      <dc:creator>Asadullah Yousaf</dc:creator>
      <description>How a Lahore hospital moved from paper registers to one connected system: role-based portals, shift cash reconciliation, lab QC rules and a full audit trail.</description>
      <category>hospital management system</category>
      <category>healthcare software</category>
      <category>audit trail</category>
      <category>Next.js</category>
      <category>PostgreSQL</category>
      <content:encoded><![CDATA[<p><strong>TL;DR:</strong> To replace paper registers in a hospital, build the system around accountability: every bill, discount, lab result and shift closing is tied to a named staff member and logged, nothing is edited or deleted without a trail, and cash is reconciled against the system at the end of every shift. The LCGH system has tracked 14,578 patient visits and Rs 11.38M this way.</p><p>Lahore Children &amp; General Hospital ran on paper registers across reception, OPD, lab, ultrasound and billing. Paper was slow and error-prone, but the real problem was worse: when money or results went missing, there was no way to find out what happened.</p>
<p>I built the hospital&#39;s management system from scratch, and I still run it. The core design decision was to make <strong>every shift, bill and lab result accountable to a named person</strong>. This post covers how that works and what it changed.</p>
<h2 id="why-build-around-accountability-instead-of-features">Why build around accountability instead of features?</h2>
<p>Most hospital software is sold as a list of modules: registration, billing, lab, pharmacy. Those are necessary, but they do not fix the problem a paper hospital actually has. Paper fails because nobody can answer three questions:</p>
<ol>
<li>Who collected this money?</li>
<li>Who changed this bill or result, and why?</li>
<li>Does the cash in the drawer match what was billed?</li>
</ol>
<p>So the system is designed so that every record answers those questions by default:</p>
<ul>
<li>Every <strong>bill, discount and doctor&#39;s share</strong> is logged and traceable.</li>
<li>Nothing is <strong>edited or deleted without a trail</strong> and a reason.</li>
<li>Every <strong>lab result</strong> is tied to the person who entered and released it.</li>
<li>Every <strong>shift closing</strong> is tied to one staff member.</li>
</ul>
<h2 id="how-does-a-patient-visit-flow-through-the-system">How does a patient visit flow through the system?</h2>
<div class="table-wrap"><table><thead><tr><th>Step</th><th>Who</th><th>What the system records</th></tr></thead><tbody><tr><td>Reception</td><td>Receptionist</td><td>Registration, queue position, services, discounts, live bill preview</td></tr><tr><td>OPD / clinical</td><td>Doctor, nurse</td><td>Consultation and orders</td></tr><tr><td>Lab and ultrasound</td><td>Lab technician</td><td>Sample on a worklist from collection to delivery, results through QC rules</td></tr><tr><td>Billing</td><td>Reception / billing staff</td><td>Receipts, discounts, doctor's shares</td></tr><tr><td>Shift closing</td><td>Each staff member</td><td>Cash collected reconciled against system records</td></tr></tbody></table></div><p>Each role works in its own view. Reception, nurses, doctors, lab technicians and admins see only what they need, and a Super Admin oversees the whole hospital in real time.</p>
<h2 id="how-does-shift-cash-reconciliation-work">How does shift cash reconciliation work?</h2>
<p>At the end of every shift, each staff member who took payments closes their own shift. The system compares the cash they report against what it recorded for them during that shift. A mismatch is visible immediately and belongs to one person and one shift, instead of surfacing weeks later as an unexplained gap in a ledger.</p>
<p>It is designed to build trust between hospital management and staff: honest staff are protected, because their numbers are provably correct, and gaps can no longer hide in shared registers.</p>
<h2 id="how-do-lab-quality-control-rules-work">How do lab quality-control rules work?</h2>
<p>Lab results do not go straight from the technician to the doctor. They pass through quality-control rules first. A result that fails a rule can only be released through an override, and every override is logged with a reason. That keeps clinical judgement possible while making it visible.</p>
<p>The lab worklist tracks every sample from collection to delivery, so &quot;where is my report?&quot; has an answer.</p>
<h2 id="what-about-paper-files-patients-already-have">What about paper files patients already have?</h2>
<p>Patients arrive with years of paper: old prescriptions, reports and files. Staff capture them straight from a phone camera, with automatic cropping and clean-up, and store them against the patient record.</p>
<p>Patients get a <strong>QR-code portal</strong>, protected by a PIN, where they can see their own medical history and documents at any time.</p>
<h2 id="what-are-the-results-so-far">What are the results so far?</h2>
<p>Since launch, the system has processed:</p>
<ul>
<li><strong>14,578 patient visits</strong></li>
<li><strong>Rs 11,385,060</strong> in takings, every rupee reconciled to a shift and a bill</li>
<li><strong>2,233 repeat patients</strong>, each with their full history one lookup away</li>
<li>An <strong>average bill of Rs 781</strong> per visit, each traceable to a shift and a staff member</li>
</ul>
<p>The stack is deliberately boring: Next.js and TypeScript, PostgreSQL through Prisma, Supabase and Vercel. Hospital software has to be dependable more than clever.</p>
<h2 id="what-would-i-tell-another-hospital-going-digital">What would I tell another hospital going digital?</h2>
<ul>
<li><strong>Start with the money and the results.</strong> Audit trails on billing and lab results pay for the project faster than any other feature.</li>
<li><strong>Reconcile per person, per shift.</strong> Hospital-wide totals hide problems; per-shift closings expose them while they are small.</li>
<li><strong>Make overrides possible but loud.</strong> Clinicians need flexibility; the system&#39;s job is to record who used it and why.</li>
<li><strong>Digitise the old paper too</strong>, or staff will keep going back to the cabinet.</li>
</ul>
<p>See the <a href="/projects/lcgh/">LCGH Hospital Management System case study</a> for screenshots and the demo video. For how I approach agent workflows with human oversight, read <a href="/blog/ai-receptionist-llm-writes-code-decides/">AI Receptionist Design: The LLM Writes, Code Decides</a>.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Multilingual YouTube RAG: Architecture Notes</title>
      <link>https://asadullahyousaf.com/blog/multilingual-youtube-rag-architecture/</link>
      <guid isPermaLink="true">https://asadullahyousaf.com/blog/multilingual-youtube-rag-architecture/</guid>
      <pubDate>Sun, 15 Feb 2026 00:00:00 GMT</pubDate>
      <dc:creator>Asadullah Yousaf</dc:creator>
      <description>A practical retrieval pipeline for long-form video: transcript embedding, FAISS search, multilingual models and session-aware Q&amp;A with Gemini.</description>
      <category>RAG</category>
      <category>FAISS</category>
      <category>multilingual</category>
      <category>YouTube</category>
      <category>Gemini</category>
      <content:encoded><![CDATA[<p><strong>TL;DR:</strong> To answer questions about long multilingual videos, chunk and embed the transcripts with a multilingual embedding model, index them in FAISS, retrieve the top-k segments for each question, and let an LLM answer from those segments with session context for follow-ups.</p><p>Keyword search over video transcripts misses context. Users ask natural questions, want summaries across segments, and often work in multiple languages. A RAG pipeline grounds answers in retrieved transcript chunks instead of model memory alone.</p>
<p>The core flow: fetch transcripts, chunk and embed with a multilingual embedding model, index with FAISS for fast similarity search, then pass top-k segments to an LLM for answer generation and summarisation.</p>
<h2 id="why-does-session-context-matter">Why does session context matter?</h2>
<p>Follow-up questions depend on prior turns. Session-aware retrieval lets users drill into a topic without restating the entire video context each time.</p>
<p>Grounding responses in retrieved segments reduces hallucination on factual questions about video content.</p>
<h2 id="which-stack-choices-work">Which stack choices work?</h2>
<p>Flask provides a simple API layer. LangChain helps orchestrate retrieval and generation. Hugging Face multilingual embeddings handle cross-language queries. Gemini 2.5 Flash keeps latency reasonable for interactive use.</p>
<p>See the <a href="/projects/ytbot-rag/">Multilingual YouTube RAG case study</a> for implementation details and outcomes.</p>
]]></content:encoded>
    </item>
    <item>
      <title>From Prompt to CAD: Text-to-Floor-Plan with FLUX</title>
      <link>https://asadullahyousaf.com/blog/text-to-cad-floor-plans-flux/</link>
      <guid isPermaLink="true">https://asadullahyousaf.com/blog/text-to-cad-floor-plans-flux/</guid>
      <pubDate>Tue, 20 Jan 2026 00:00:00 GMT</pubDate>
      <dc:creator>Asadullah Yousaf</dc:creator>
      <description>A two-stage pipeline for layout generation: fine-tuned FLUX.1-dev for raster plans, then OpenCV raster-to-vector export to DXF and JSON metadata.</description>
      <category>generative AI</category>
      <category>FLUX</category>
      <category>CAD</category>
      <category>floor plans</category>
      <category>computer vision</category>
      <content:encoded><![CDATA[<p><strong>TL;DR:</strong> Generative image models produce floor plans as PNGs, which are not CAD-ready. FloorGen AI fixes that in two stages: a fine-tuned FLUX.1-dev model generates the raster plan from structured prompts, then OpenCV converts it to vectors and exports layered DXF plus JSON room metadata.</p><p>Architects and designers need draft layouts fast, but PNG outputs from generative models are not CAD-ready. FloorGen AI bridges that gap with a pipeline from natural language to editable geometry.</p>
<p>Stage one uses structured prompt engineering and a fine-tuned FLUX.1-dev model trained on professional floor plans. Stage two runs raster-to-vector conversion with OpenCV and exports layered DXF plus JSON room metadata.</p>
<h2 id="which-exports-matter-in-practice">Which exports matter in practice?</h2>
<p>DXF files with walls, doors, furniture, and text layers import into AutoCAD, Revit, and Blender. JSON stores rooms, areas, labels, and dimensions for downstream automation.</p>
<p>Annotated PNGs support quick review before handoff to detailed drafting.</p>
<h2 id="what-is-documented-in-the-open-source-repo">What is documented in the open-source repo?</h2>
<p>The FloorGen repository documents training data scale, Hugging Face Diffusers setup, ezdxf export, and a Gradio demo for interactive generation.</p>
<p>See the <a href="/projects/floorgen/">FloorGen AI case study</a> for screenshots, GitHub facts, and the full stack.</p>
]]></content:encoded>
    </item>
  </channel>
</rss>
