انتقل إلى المحتوى
أمين أبوزيد
درس مخطط لهMID-068-L07

عرض عملي: مساعد دعم الطلبات يجيب مع الاستشهادات

  • الدرس 7 من 8
  • Mid-level
في هذا الدرس 3 موضوعات

هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.

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

في هذا الدرس

build the assistant that prepares MID-068-LAB1.

تفاصيل المخطط المبدئي

خطوة بخطوة

  1. Start from the MID-067 index; add a POST /support/ask endpoint.
  2. Retrieve top 20 with language filter, keep the top 4 above the similarity threshold.
  3. Build the prompt with numbered sources and the decline instruction; call the model through Spring AI (verify API and model name before recording).
  4. Planned mistake: a question about a topic Shop does not cover gets a confident answer from model memory because the prompt had no decline rule and no threshold. Fix: add the rule and return a fixed decline when nothing passes the threshold.
  5. Return {answer, sources:[{articleId,title}]} and test shipping, returns, payment, and one out-of-scope question.
  6. Log the question, retrieved chunk ids, scores, and answer for later diagnosis.

التطبيق

طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.

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

تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.

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