انتقل إلى المحتوى
أمين أبوزيد
SRC-021

تصميم ميزات ذكاء اصطناعي موثوقة

  • 7 درس
  • 4 ساعة تدريب (تقدير)
في هذه الصفحة 9 موضوعات

نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.

نظرة عامة

الموضوعات

  • ميزانيات زمن الاستجابة والكلفة
  • البدائل الاحتياطية (fallbacks)
  • انقطاعات المزوّد
  • توجيه النماذج (model routing)
  • التخزين المؤقت (caching)
  • SLOs للميزات غير الحتمية

تعلّم أولًا

4 ساعة تدريب (تقدير)

مخرجات التعلم

  1. Set latency, cost, and quality budgets for an LLM-backed feature and allocate them across retrieval, model calls, and tools.
  2. Design fallbacks for model or provider failure (smaller model, cached answer, non-AI path, honest "unavailable" state) that keep the core journey working.
  3. Use routing, caching, streaming, and request shaping to meet latency and cost targets.
  4. Define SLOs for non-deterministic features that combine availability, latency, and evaluated quality.

الدروس

  1. 01ما الذي يجعل تشغيل ميزات الذكاء الاصطناعي مختلفًا
  2. 02ميزانيات زمن الاستجابة والكلفة لاستدعاءات النماذج
  3. 03البدائل الاحتياطية والتدهور السلس للذكاء الاصطناعي
  4. 04توجيه النماذج والتخزين المؤقت والبث (streaming)
  5. 05SLOs للميزات غير الحتمية
  6. 06عرض عملي: مساعد دعم الطلبات يصمد أمام انقطاع المزوّد
  7. 07عرض عملي: خفض كلفة الإجابة بتوجيه الأسئلة السهلة إلى نموذج أصغر

المختبر والتمارين

Lab

SRC-021-LAB1 · AI order support at 10×

Outcomes: 1–4 · Time: ~3 h

  1. Design the order-support assistant for the 10× forecast with p95 latency, cost-per-conversation, and quality targets, allocated across retrieval, model calls, and tools.
  2. Implement a fallback path and a model-routing rule.
  3. Define SLOs combining availability, latency, and evaluated quality.
  4. Inject a provider outage and a latency spike; run a load test; measure quality on the evaluation set before and after routing.

Acceptance: checkout and order tracking are unaffected by the outage; budgets met in a load test; quality measured on the evaluation set before and after routing.

Exercises (design review; six exercises)

IDOutcomeTask
SRC-021-EX011Allocate a 6 s p95 budget and a cost-per-conversation target across retrieval, model call, and tools for the assistant.
SRC-021-EX021Estimate monthly cost at 10x conversations given token counts and a price; state assumptions.
SRC-021-EX032Design a fallback ladder with triggers and user messages for model timeout, provider outage, and quota exhaustion.
SRC-021-EX042Review a design where the assistant call sits inside the checkout transaction; fix it.
SRC-021-EX053Propose a routing rule and a cache for order-status and refund questions; list the risks of each.
SRC-021-EX064Write SLOs for the assistant including a quality SLI, and respond to an assessor constraint: cost per answer must be halved.
أظهر الحلول
  • EX01 For example retrieval 600 ms, prompt assembly 100 ms, model 4 s, tools 600 ms, margin 700 ms; cost split by tokens; include timeouts per stage.
  • EX02 Conversations x turns x (input + output tokens) x price per token; verify current pricing; include retrieval and retries; show a range.
  • EX03 Timeout: retry once then smaller model; outage: circuit opens, cached or FAQ answer, then honest "unavailable"; quota exhaustion: queue with limits, route to cheaper model, shed low-priority traffic.
  • EX04 Move it off the critical path: asynchronous endpoint, separate pool, timeout; checkout must not depend on model availability.
  • EX05 Routing: order-status via data lookup and small model, refunds to the large model; risk of misrouting measured on the evaluation set; cache exact-match answers with short TTL, avoid caching personal data across users.
  • EX06 SLOs: 99.5% of conversations get a response in 6 s p95, 90% of sampled answers meet the rubric, cost under budget. To halve cost: more routing to small model, shorter context, caching, output limits; re-evaluate quality and report the trade-off.

Workplace evidence: an AI feature you designed or hardened with explicit latency, cost, and fallback targets.

الاختبار

Outcomes: O1 latency, cost, quality budgets · O2 fallbacks · O3 routing, caching, streaming · O4 SLOs for non-deterministic features.

اختبار ذاتي لك: لا توجد درجات، ولا يُحفظ أو يُرسل أي شيء. اختر إجابة ثم تحقق منها، ويمكنك المحاولة مرة أخرى كما تشاء.

  1. 1A checkout team proposes calling the model inside the checkout request. Best response?O1
  2. 2Every model call should have:O1
  3. 3Cost per conversation depends mainly on:O1
  4. 4The provider is down. The assistant should:O2
  5. 5To prevent model slowness from exhausting threads you use:O2
  6. 6Streaming mainly improves:O3
  7. 7After routing easy questions to a smaller model you must:O3
  8. 8A risk of semantic caching is:O3
  9. 9An AI feature's SLO should include:O4
  10. 10A quality SLI is typically:O4

الجزء العملي

Six design exercises SRC-021-EX01 to EX06 plus the lab with an injected provider outage and latency spike. Pass: quiz at least 8/10, at least five exercises correct, and a design review that holds up under an assessor-injected constraint (cost halved or quota cut).

أخطاء شائعة

Putting a model call on the critical checkout path; no timeout on model calls; measuring only availability for an AI feature; assuming the provider's rate limits will scale with you.

التقييم

Design review of the assistant with an assessor-injected constraint (cost halved, or the provider's quota cut).

دليل من بيئة العمل

An AI feature you designed or hardened with explicit latency, cost, and fallback targets.

الصلة بالمسار الوظيفي

AI platform capabilities (SRB-021) and AI solution architecture (ARC-045).

اكتب للبحث في المستويات والمراحل والوحدات والدروس.