گردش کار و سیستمهای مبتنی بر مدل
هوش مصنوعی برای همه: هوش مصنوعی چطور باهوش شد؟
- A workflow as an application-defined sequence of steps and branches.
- Combining ordinary software, retrieval, tools, and one or more model calls.
- Structured outputs and validation between steps.
- A fixed equipment-assistant workflow: retrieve a manual section, extract values, calculate, and produce a sourced explanation.
- Retries, explicit failure paths, and passing state between steps.
- Why a well-designed workflow can outperform a single more capable model on a constrained task.
- Distinguishing the base model, the full application, and the user-facing interface.
سه بخش، یک مسیر مشخص
```svg
<svg viewBox="0 0 800 450" xmlns="http://www.w3.org/2000/svg"><defs><marker id="a" markerWidth="10" markerHeight="10" refX="8" refY="3" orient="auto"><path d="M0,0 L0,6 L9,3 z" class="tm-arrow"/></marker></defs><rect x="35" y="80" width="205" height="90" rx="14" class="tm-surface"/><text x="137" y="118" class="tm-text" font-size="18" text-anchor="middle" direction="rtl">رابط کاربری</text><text x="137" y="148" class="tm-muted" font-size="14" text-anchor="middle" direction="rtl">سؤال و جواب</text><rect x="295" y="80" width="230" height="90" rx="14" class="tm-surface"/><text x="410" y="118" class="tm-text" font-size="18" text-anchor="middle" direction="rtl">برنامهٔ کامل</text><text x="410" y="148" class="tm-muted" font-size="14" text-anchor="middle" direction="rtl">جریان و تصمیمگیری</text><rect x="580" y="80" width="185" height="90" rx="14" class="tm-accent"/><text x="672" y="118" class="tm-text" font-size="18" text-anchor="middle" direction="rtl">مدل پایه</text><text x="672" y="148" class="tm-text2" font-size="14" text-anchor="middle" direction="rtl">خواندن و استخراج</text><path d="M240 125 H285" class="tm-line" marker-end="url(#a)"/><path d="M525 125 H570" class="tm-line" marker-end="url(#a)"/></svg>
```
بازیابی و استخراجِ قابلبررسی
```svg
<svg viewBox="0 0 800 450" xmlns="http://www.w3.org/2000/svg"><defs><marker id="arrow" markerWidth="10" markerHeight="10" refX="8" refY="3" orient="auto"><path d="M0,0 L0,6 L9,3 z" class="tm-arrow"/></marker></defs><rect x="35" y="35" width="225" height="110" rx="12" class="tm-soft"/><text x="147" y="66" text-anchor="middle" class="tm-text" font-size="18" direction="rtl">درخواست</text><text x="147" y="98" text-anchor="middle" class="tm-text2" font-size="15" direction="rtl">شناسه · نسخه · پرسش</text><rect x="330" y="35" width="225" height="110" rx="12" class="tm-accent"/><text x="442" y="68" text-anchor="middle" class="tm-text" font-size="18" direction="rtl">بازیابی</text><text x="442" y="101" text-anchor="middle" class="tm-text2" font-size="15" direction="rtl">بخش دفترچه</text><line x1="260" y1="90" x2="325" y2="90" class="tm-line-accent" marker-end="url(#arrow)"/><rect x="590" y="35" width="175" height="110" rx="12" class="tm-green"/><text x="677" y="67" text-anchor="middle" class="tm-text" font-size="17" direction="rtl">بستهٔ منبع</text><text x="677" y="96" text-anchor="middle" class="tm-text2" font-size="14" direction="rtl">متن · شناسه · نسخه</text><text x="677" y="120" text-anchor="middle" class="tm-text2" font-size="14" direction="rtl">نشانی منبع</text><line x1="555" y1="90" x2="585" y2="90" class="tm-line" marker-end="url(#arrow)"/><rect x="35" y="205" width="330" height="95" rx="12" class="tm-surface"/><text x="200" y="238" text-anchor="middle" class="tm-text" font-size="17" direction="rtl">اعتبارسنجی بازیابی</text><text x="200" y="270" text-anchor="middle" class="tm-text2" font-size="15" direction="rtl">شناسه و نسخه مطابق</text><text x="200" y="290" text-anchor="middle" class="tm-text2" font-size="15" direction="rtl">عبارت توان در متن</text><line x1="677" y1="145" x2="365" y2="245" class="tm-line" marker-end="url(#arrow)"/><rect x="420" y="205" width="345" height="95" rx="12" class="tm-soft"/><text x="592" y="238" text-anchor="middle" class="tm-text" font-size="17" direction="rtl">نمونهٔ منبع</text><text x="592" y="273" text-anchor="middle" class="tm-text2" font-size="15" direction="rtl">صفحهٔ ۱۲ · توان نامی فن: ۶۰ وات</text><rect x="35" y="340" width="330" height="75" rx="12" class="tm-accent tm-enter"/><text x="200" y="370" text-anchor="middle" class="tm-text" font-size="17" direction="rtl">استخراج · structured output</text><text x="200" y="399" text-anchor="middle" class="tm-text2" font-size="14" direction="rtl">نام کمیت | مقدار | واحد | عبارت پشتیبان</text><rect x="420" y="340" width="345" height="75" rx="12" class="tm-green"/><text x="592" y="369" text-anchor="middle" class="tm-text" font-size="16" direction="rtl">توان نامی | ۶۰ | وات</text><text x="592" y="398" text-anchor="middle" class="tm-text2" font-size="14" direction="rtl">عبارت دفترچه</text><line x1="365" y1="378" x2="415" y2="378" class="tm-line-accent" marker-end="url(#arrow)"/></svg>
```
محاسبه و توضیح مستند
توان تأییدشده: \(60\,\mathrm{W}\)؛ مدت کار: \(2\,\mathrm{h}\)؛ توان ثابت است.
**رابطهٔ انرژی**
\[ E=P\times t \]
توان ثابت
**جایگذاری دادهها**
\[ E=60\,\mathrm{W}\times 2\,\mathrm{h} \]
محاسبه با ابزار
**نتیجه و واحد**
\[ E=120\,\mathrm{Wh} \]
انرژی اسمی؛ نه اندازهگیری مصرف واقعی
**توضیح مدل**
\[ \text{دفترچه: توان نامی}\quad\longrightarrow\quad\text{ابزار: انرژی اسمی} \]
ارجاع و عددها با دادههای تأییدشده تطبیق داده میشوند
اعتبار خروجی و مسیر خطا
```svg
<svg viewBox="0 0 800 450" xmlns="http://www.w3.org/2000/svg"><defs><marker id="a" markerWidth="10" markerHeight="10" refX="8" refY="3" orient="auto"><path d="M0,0 L0,6 L9,3 z" class="tm-arrow"/></marker></defs><rect x="35" y="65" width="190" height="72" rx="12" class="tm-surface"/><text x="130" y="108" class="tm-text" font-size="18" text-anchor="middle" direction="rtl">خروجی بازیابی</text><line x1="225" y1="101" x2="300" y2="101" class="tm-line" marker-end="url(#a)"/><rect x="300" y="65" width="190" height="72" rx="12" class="tm-surface"/><text x="395" y="108" class="tm-text" font-size="18" text-anchor="middle" direction="rtl">بررسی سند</text><line x1="490" y1="101" x2="565" y2="101" class="tm-line" marker-end="url(#a)"/><rect x="565" y="65" width="190" height="72" rx="12" class="tm-accent tm-pulse"/><text x="660" y="108" class="tm-text" font-size="18" text-anchor="middle" direction="rtl">استخراج مقدار</text><text x="395" y="174" class="tm-muted" font-size="16" text-anchor="middle" direction="rtl">عبور فقط با خروجی معتبر</text><path d="M395 137 V230 H165 V285" fill="none" class="tm-line" marker-end="url(#a)"/><rect x="45" y="285" width="240" height="65" rx="12" class="tm-gold"/><text x="165" y="324" class="tm-text" font-size="17" text-anchor="middle" direction="rtl">رد سند نامنطبق</text><text x="165" y="380" class="tm-muted" font-size="15" text-anchor="middle" direction="rtl">جستوجوی دوباره با شناسهٔ دقیقتر</text><line x1="755" y1="101" x2="770" y2="101" class="tm-line"/><path d="M660 137 V230 H550 V285" fill="none" class="tm-line-accent tm-flow" marker-end="url(#a)"/><rect x="430" y="285" width="240" height="65" rx="12" class="tm-gold tm-enter"/><text x="550" y="324" class="tm-text" font-size="17" text-anchor="middle" direction="rtl">مقدار یا واحد نامعتبر</text><text x="550" y="380" class="tm-muted" font-size="15" text-anchor="middle" direction="rtl">تلاش دوباره؛ سپس استخراج ناموفق</text></svg>
```
Workflow با مسئولیت روشن
```svg
<svg viewBox="0 0 800 450" xmlns="http://www.w3.org/2000/svg"><defs><marker id="arrow" markerWidth="10" markerHeight="10" refX="8" refY="5" orient="auto"><path d="M0,0 L10,5 L0,10 z" class="tm-arrow"/></marker></defs><rect x="28" y="165" width="112" height="70" rx="12" class="tm-soft"/><text x="84" y="195" class="tm-text" font-size="16" text-anchor="middle" direction="rtl">درخواست</text><rect x="170" y="145" width="140" height="100" rx="12" class="tm-surface"/><text x="240" y="180" class="tm-text" font-size="15" text-anchor="middle" direction="rtl">بازیابی بخش دفترچه</text><text x="240" y="215" class="tm-muted" font-size="14" text-anchor="middle">retrieval</text><rect x="340" y="145" width="140" height="100" rx="12" class="tm-accent"/><text x="410" y="180" class="tm-text" font-size="15" text-anchor="middle" direction="rtl">استخراج مقدارها</text><text x="410" y="215" class="tm-muted" font-size="14" text-anchor="middle" direction="rtl">مدل</text><rect x="510" y="145" width="110" height="100" rx="12" class="tm-surface"/><text x="565" y="180" class="tm-text" font-size="15" text-anchor="middle" direction="rtl">محاسبه</text><text x="565" y="215" class="tm-muted" font-size="14" text-anchor="middle" direction="rtl">ابزار</text><rect x="650" y="145" width="130" height="100" rx="12" class="tm-surface"/><text x="715" y="180" class="tm-text" font-size="15" text-anchor="middle" direction="rtl">توضیح همراه با منبع</text><text x="715" y="215" class="tm-muted" font-size="14" text-anchor="middle" direction="rtl">مدل</text><path d="M140 200 H165 M310 200 H335 M480 200 H505 M620 200 H645" class="tm-line" marker-end="url(#arrow)"/><rect x="185" y="285" width="110" height="55" rx="10" class="tm-gold"/><text x="240" y="308" class="tm-text" font-size="13" text-anchor="middle" direction="rtl">بررسی تطابق</text><text x="240" y="328" class="tm-text2" font-size="12" text-anchor="middle" direction="rtl">دستگاه و منبع</text><path d="M240 245 V280" class="tm-line" marker-end="url(#arrow)"/><text x="315" y="315" class="tm-muted" font-size="12" direction="rtl">شکست: جستوجوی محدود دوباره ← درخواست سند درست</text><rect x="355" y="285" width="110" height="55" rx="10" class="tm-gold tm-enter"/><text x="410" y="308" class="tm-text" font-size="13" text-anchor="middle" direction="rtl">بررسی مقدار</text><text x="410" y="328" class="tm-text2" font-size="12" text-anchor="middle" direction="rtl">و واحد با متن</text><path d="M410 245 V280" class="tm-line-accent" marker-end="url(#arrow)"/><text x="480" y="365" class="tm-muted" font-size="12" direction="rtl">شکست: اصلاح محدود ← توقف محاسبه</text></svg>
```
بازگشت به دوره