230
سطراً من القواعد المكتوبة
lines of specification
منصّة · 2025 · دون ذكر اسم العميل
يُنشئ جداول دراسية خالية من التعارض بين الصفوف والشُّعب والمدرّسين والمواد. يولّدها نموذج لغوي من نماذج الذكاء الاصطناعي ملتزماً بقواعد صارمة مكتوبة، ثم يفحصها كود برمجي تقليدي قبل اعتمادها.
230
سطراً من القواعد المكتوبة
lines of specification
49
مساراً في الواجهة البرمجية
Independent
Validation
generator output is not trusted
المشكلة
Building a school timetable by hand takes days and still produces conflicts: a teacher double-booked across sections, a subject scheduled with no available teacher. The constraint set is small to state and painful to satisfy.
الحلّ المعتمد
Treated the prompt as a specification rather than a request. It states the hard constraint, then immediately states what is deliberately not a conflict, because a model told no two classes at once over-generalises into no subject twice at once and produces unusable sparse timetables. It teaches by counterexample and specifies an algorithm rather than an outcome. Generated output is then validated against the constraint set by ordinary code before being accepted.
بنية النظام
Constraint specification, batched generation with staged temperature, three-layer response parser, independent conflict validator, retry with feedback. The validator is deliberately separate from the generator.
ومع كل قرار ثمنه
القرار الذي لا يُذكر ثمنه مجرّد تفضيل شخصي.
01
السبب
أن يُخرج النموذج جدولاً مرتّب الشكل، يبدو واثقاً، وفيه تعارضات، هذا هو الخطأ المتوقّع منه، لا حالة نادرة. لذلك يتولّى كود برمجي عادي كشف التعارضات في النتيجة.
الثمن
قواعد الجدول مكتوبة مرّتين: مرّة كمواصفات للنموذج، ومرّة ككود. هذا تكرار، لكنه ما يتيح لنا رفض الجواب الخاطئ.
02
السبب
The first attempt runs near-deterministic. Retries widen slightly, because a strictly deterministic retry reproduces the same conflict.
الثمن
Later attempts are less predictable, which the validator absorbs.
النتيجة
A term timetable generates in minutes, with teacher conflicts rejected programmatically rather than discovered in the first week of term.