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

تجميع السياق والاستشهادات

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

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

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

في هذا الدرس

build a prompt from chunks with citations and a safe "I don't know".

الموضوعات المخطط لها

  • Prompt parts: instructions, numbered sources, then the question. Keep instructions separate from retrieved text.
  • Tell the model: answer only from the sources, cite source numbers, say it does not know when the sources do not answer.
  • If retrieval returns nothing relevant, do not call the model with an empty context: return a fixed decline message.
  • Return the citations (article id, title, link) to the client, not just text.
  • Retrieved text is untrusted data; instructions inside it must not be followed (see MID-071).
تفاصيل المخطط المبدئي

عرض عملي

text
Answer using only the sources below. Cite as [1], [2]. If the sources do not
answer the question, reply: "I could not find this in our help center."
[1] (Returns, Deadlines) Items can be returned within 14 days ...
Question: Can I return shoes after three weeks?

Deadline values are examples.

اختبر فهمك

What should the assistant do when retrieval finds nothing relevant?

أظهر الإجابة

Decline explicitly; do not answer from model memory.

التطبيق

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

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

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

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