عرض عملي: إجابة سياسة قديمة يصلحها إعادة الفهرسة الموجّهة بالأحداث
في هذا الدرس 3 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
show a stale answer, trace it in the logs, and fix it with a re-index event.
تفاصيل المخطط المبدئي
خطوة بخطوة
- Ask "How many days do I have to return an item?" and get the old 14-day answer after the policy changed to 30 days.
- Read the logs: the cited chunk id and its
updatedtime show the stale chunk was retrieved; the model was right to use it. - Publish
HelpArticleUpdatedfor the article; the consumer re-chunks, hash-compares, and re-embeds only changed chunks. - Planned mistake: the consumer inserts new chunks but forgets to delete old ones, so both answers are retrieved. Fix: replace the article's chunks in one transaction.
- Ask again; the answer shows 30 days within one minute; confirm the unchanged articles were not re-embedded.
- This prepares the freshness criterion of
MID-068-LAB1.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.