مشروع ختامي: مساعد عربي / Capstone: an Arabic assistant

الترتيب / Order
14 من 14 / 14 of 14
آخر تحديث / Updated
8 أكتوبر 2026 / 8 October 2026

المستوى: متقدّم · الدرس 14 من 14

أهداف الدرس

  1. أن تجمع كل ما تعلّمته في مساعد عربي.
  2. أن تعالج خصوصيات العربية.

العربية لها تحدّياتها: التشكيل، وصور الألف، والتاء المربوطة، واللهجات، والمصطلحات الإنجليزية داخل النص العربي. تطبيع النص قبل البحث يجعل «أحمد» و«احمد» و«أَحْمَد» كلمة واحدة.

خمس خطوات إلى مساعد عربي موثوق
خمس خطوات إلى مساعد عربي موثوق
Python
import re

DIACRITICS = re.compile(r"[\u064B-\u0652\u0670\u0640]")   # tashkeel and tatweel

def normalize_ar(text: str) -> str:
    text = DIACRITICS.sub("", text)
    text = re.sub("[إأآا]", "ا", text)
    return text.replace("ى", "ي").replace("ة", "ه")

print(normalize_ar("أَحْمَدُ يُحِبُّ المَكْتَبَة"))   # احمد يحب المكتبه

توجد اليوم نماذج مفتوحة تحسن العربية، منها نماذج طُوّرت في المنطقة العربية، ومقاييس عربية لاختبارها. جرّب أكثر من نموذج على أسئلتك أنت قبل أن تختار.

  • اجمع مستندات مسار واحد: اللوائح أو مواد مساق.
  • طبّع النص وقطّعه على حدود الجمل.
  • ابنِ بحثاً هجيناً مع إعادة ترتيب.
  • اكتب أمر نظام يفرض ذكر المصدر وقول «لا أعرف».
  • اختبر بثلاثين سؤالاً حقيقياً من طلبتك، بالفصحى واللهجة.

شارك نتيجتك في الورشة، وأخبرنا بما تعلّمته عبر نموذج «رأيك».

رأيك في منصّة صفحات المدرّسين

مشاريعيمساعد الكلية الذكي

تمرين

لماذا نحوّل «ة» إلى «ه» عند البحث فقط وليس عند عرض الإجابة؟

الإجابة

لأن التطبيع يوحّد الكلمات للمطابقة، لكن العرض يجب أن يبقى عربياً سليماً كما كُتب.

Level: Advanced · Lesson 14 of 14

Lesson goals

  1. Bring everything together in an Arabic assistant.
  2. Handle what is special about Arabic.

Arabic has its own challenges: diacritics, alef forms, taa marbuta, dialects, and English terms inside Arabic text. Normalising text before search makes «أحمد», «احمد» and «أَحْمَد» one word.

Five steps to a trusted Arabic assistant
Five steps to a trusted Arabic assistant
Python
import re

DIACRITICS = re.compile(r"[\u064B-\u0652\u0670\u0640]")   # tashkeel and tatweel

def normalize_ar(text: str) -> str:
    text = DIACRITICS.sub("", text)
    text = re.sub("[إأآا]", "ا", text)
    return text.replace("ى", "ي").replace("ة", "ه")

print(normalize_ar("أَحْمَدُ يُحِبُّ المَكْتَبَة"))   # احمد يحب المكتبه

Open models that handle Arabic well exist today, including models developed in the Arab region, and Arabic benchmarks to test them. Try more than one model on your own questions before choosing.

  • Gather one area's documents: the rules or one course's materials.
  • Normalise the text and chunk it on sentence boundaries.
  • Build hybrid search with reranking.
  • Write a system prompt that requires citations and «I don't know».
  • Test with thirty real questions from your students, in MSA and dialect.

Share your result at the workshop, and tell us what you learned through the «Your view» form.

Your view of the teacher-sites platform

ProjectsThe college AI assistant

Exercise

Why turn «ة» into «ه» for search only, not when showing the answer?

Answer

Normalising unifies words for matching, but what readers see must stay correct Arabic as written.

التعليقات / Comments

لا تعليقات بعد. كن أول من يسأل. / No comments yet. Be the first to ask.

تعليق الطالب يظهر فوراً، وتعليق الزائر بعد موافقة المدرّس. / A student's comment shows at once; a visitor's once the teacher approves it.

في «الذكاء الاصطناعي: من الصفر إلى الاحتراف» / In “AI: from zero to hero”

  1. 1ما الذكاء الاصطناعي التوليدي؟ / What is generative AI?فيها صور / has picturesالتعليقات مفتوحة / comments open
  2. 2الرموز والتضمينات / Tokens and embeddingsفيها كود / has codeفيها صور / has picturesالتعليقات مفتوحة / comments open
  3. 3المحوّل والانتباه / Transformers and attentionفيها كود / has codeفيها صور / has picturesالتعليقات مفتوحة / comments open
  4. 4التدريب المسبق / Pre-trainingفيها كود / has codeفيها صور / has picturesالتعليقات مفتوحة / comments open
  5. 5الضبط بالتعليمات / Instruction tuning (SFT)فيها كود / has codeالتعليقات مفتوحة / comments open
  6. 6التعلّم من التفضيلات / Learning from preferencesفيها كود / has codeفيها صور / has picturesالتعليقات مفتوحة / comments open
  7. 7نماذج الاستدلال / Reasoning modelsفيها كود / has codeالتعليقات مفتوحة / comments open
  8. 8الضبط الدقيق الفعّال / Efficient fine-tuningفيها كود / has codeفيها صور / has picturesالتعليقات مفتوحة / comments open
  9. 9هندسة الأوامر والسياق / Prompt and context engineeringفيها كود / has codeالتعليقات مفتوحة / comments open
  10. 10الاسترجاع المعزّز (RAG) من الصفر / RAG from scratchفيها كود / has codeفيها صور / has picturesالتعليقات مفتوحة / comments open
  11. 11RAG المتقدّم / Advanced RAGفيها كود / has codeالتعليقات مفتوحة / comments open
  12. 12الوكلاء والأدوات / Agents and toolsفيها كود / has codeفيها صور / has picturesالتعليقات مفتوحة / comments open
  13. 13التقييم والأمان / Evaluation and safetyفيها كود / has codeفيها صور / has picturesالتعليقات مفتوحة / comments open
  14. 14مشروع ختامي: مساعد عربي / Capstone: an Arabic assistantفيها كود / has codeفيها صور / has picturesفيها نموذج / has a formالتعليقات مفتوحة / comments open

↑ ↓ للتنقل · Enter للفتح · Esc للإغلاق↑ ↓ to move · Enter to open · Esc to close