9 Downloads Updated 7 months ago
ollama run nacerzouaizia/TashriAI-DZ
Updated 7 months ago
7 months ago
338835bc1851 · 2.0GB
في قطاع التربية، قد تكون الإجابة التي نبحث عنها موجودة داخل قانون، مرسوم، قرار أو منشور رسمي…
لكن الوصول إلى النص الصحيح، وربطه بالسؤال المطروح، والتحقق من مرجعه قد يستغرق وقتًا.
من هنا بدأت فكرة TashriAI DZ.
هو مشروع جزائري أعمل على تطويره لتسهيل البحث، الاسترجاع وفهم النصوص التشريعية والتنظيمية المرتبطة بالمنظومة التربوية الجزائرية باستخدام تقنيات الذكاء الاصطناعي ونماذج اللغة.
الهدف ليس بناء نموذج “يجيب عن كل شيء”.
الهدف هو بناء أداة تحاول أن:
في المجال القانوني، الإجابة غير الموثقة قد تكون أسوأ من عدم الإجابة.
TashriAI DZ هو نموذج ذكاء اصطناعي موجه للتعامل مع النصوص القانونية والتنظيمية المرتبطة بقطاع التربية الوطنية في الجزائر.
يمكن استخدامه للمساعدة في:
في النسخة الكاملة من المشروع، لا يُفترض أن تعتمد المعرفة القانونية على ذاكرة النموذج وحدها.
بدلًا من ذلك:
السؤال
↓
البحث في الوثائق
↓
استرجاع المقاطع الأكثر صلة
↓
إرسال السياق إلى النموذج
↓
توليد الإجابة
↓
عرض المرجع متى كان متاحًا
وهذه الفكرة هي أساس بنية RAG — Retrieval-Augmented Generation المستخدمة في المشروع.
النموذج الموجود على Ollama:
nacerzouaizia/TashriAI-DZ
يمثل طبقة الذكاء اللغوي في المشروع.
أما منظومة TashriAI DZ الكاملة فتضيف مكونات أخرى مثل:
Official Documents
│
▼
Document Processing
│
▼
Embeddings
│
▼
ChromaDB
│
▼
RAG Retrieval
│
▼
TashriAI-DZ
│
▼
FastAPI
│
▼
Next.js Arabic RTL Interface
وبالتالي يمكن تحديث قاعدة المعرفة القانونية دون الحاجة إلى إعادة تدريب النموذج في كل مرة.
| الطبقة | التقنية |
|---|---|
| 🧠 Language Model | TashriAI-DZ |
| 🦙 Local Inference | Ollama |
| 🔎 Retrieval | RAG |
| 🗄️ Vector Database | ChromaDB |
| 🧬 Embeddings | Multilingual Embeddings |
| ⚡ Backend | FastAPI |
| 🌐 Frontend | Next.js |
| 🇩🇿 Interface | Arabic RTL |
| 🐳 Deployment | Docker / Docker Compose |
| 🎓 Training | Colab / Unsloth |
| 📊 Evaluation | Dedicated evaluation set |
المعلومة القانونية يجب، قدر الإمكان، أن تأتي من النصوص والوثائق المرجعية وليس من ذاكرة النموذج وحدها.
يستخدم الـDataset لتعليم النموذج كيف يجيب، بينما يمكن توفير المعرفة المتغيرة من خلال RAG.
لا ينبغي إنشاء رقم مادة أو قانون أو منشور دون وجود سند كافٍ.
عندما لا توجد معلومات كافية، من الأفضل أن تكون الإجابة:
لا أستطيع تأكيد ذلك من النصوص المتاحة.
بدل إعطاء إجابة غير موثقة.
عند توفر المصدر، يجب أن يكون من الممكن ربط الإجابة بالوثيقة أو المادة ذات الصلة.
بعد تثبيت Ollama:
ollama run nacerzouaizia/TashriAI-DZ
ثم ابدأ بطرح الأسئلة مباشرة.
ما هي صلاحيات مجلس التأديب في المؤسسة التربوية؟
ما هي النصوص التنظيمية المتعلقة بغيابات التلاميذ؟
ما هي حقوق التلميذ داخل المؤسسة التعليمية؟
ما هو المرجع القانوني المنظم لهذا الإجراء؟
إذا لم يوجد نص صريح حول هذه المسألة، أخبرني بذلك ولا تفترض مادة قانونية.
Dans le secteur de l’éducation, l’information recherchée se trouve souvent dans une loi, un décret, un arrêté, une instruction ou une circulaire.
Le véritable défi n’est pas toujours l’existence de l’information, mais plutôt la capacité à retrouver rapidement le bon texte, comprendre son contexte et identifier sa référence.
C’est à partir de ce besoin qu’est né TashriAI DZ.
TashriAI DZ est un projet algérien d’intelligence artificielle consacré aux textes législatifs et réglementaires liés au système éducatif algérien.
L’objectif n’est pas de construire un modèle qui prétend tout savoir.
L’objectif est de développer un outil capable de :
Dans le domaine juridique, une réponse non vérifiée peut être plus problématique qu’une absence de réponse.
TashriAI DZ peut contribuer à :
Dans l’architecture complète de TashriAI DZ, la connaissance juridique peut être fournie au modèle grâce à une couche RAG — Retrieval-Augmented Generation.
Documents officiels
↓
Traitement
↓
Embeddings
↓
ChromaDB
↓
Recherche RAG
↓
TashriAI-DZ
↓
FastAPI
↓
Interface Next.js
Cette architecture permet notamment de mettre à jour la base documentaire sans devoir réentraîner entièrement le modèle.
Quelles sont les attributions du conseil de discipline ?
Quels textes réglementent les absences des élèves ?
Quelle est la référence juridique de cette disposition ?
Explique-moi cette disposition réglementaire en termes simples.
Si aucun texte disponible ne permet de confirmer la réponse, indique-le clairement.
TashriAI DZ is an Algerian AI project focused on legislative and regulatory texts related to the national education system.
The project explores how language models and retrieval systems can make official educational regulations easier to search, retrieve, understand and reference.
The goal is not to create a model that claims to know everything.
Instead, TashriAI DZ is designed around a simple principle:
Retrieve first. Generate second.
When used with the complete RAG pipeline, relevant passages can be retrieved from a document database before an answer is generated.
| Attribute | Value |
|---|---|
| Model | TashriAI-DZ |
| Ollama ID | nacerzouaizia/TashriAI-DZ |
| Base Model | Qwen2.5 7B Instruct |
| Size | 2.0 GB |
| Context Window | 128K |
| Input | Text |
| Main Language | Arabic |
| Additional Language | French |
| Domain | Algerian Educational Legislation |
| Runtime | Ollama |
The broader TashriAI project is designed to work with sources such as:
The long-term objective is to gradually expand the verified document corpus.
Model evaluation is an important part of the project.
The current project includes a dedicated evaluation set covering questions related to topics such as:
The evaluation process is intended to measure not only whether an answer sounds correct, but also whether it is:
Future versions will publish more quantitative evaluation results.
TashriAI DZ is an experimental and evolving project.
Important limitations include:
For important administrative or legal decisions, always verify the answer against the official source currently in force.
TashriAI DZ is intended for:
It does not replace official legal publications, competent administrations, or professional legal advice.
ollama run nacerzouaizia/TashriAI-DZ
curl http://localhost:11434/api/chat \
-d '{
"model": "nacerzouaizia/TashriAI-DZ",
"messages": [
{
"role": "user",
"content": "ما هي صلاحيات مجلس التأديب؟"
}
]
}'
from ollama import chat
response = chat(
model="nacerzouaizia/TashriAI-DZ",
messages=[
{
"role": "user",
"content": "ما هي صلاحيات مجلس التأديب؟"
}
],
)
print(response.message.content)
import ollama from "ollama";
const response = await ollama.chat({
model: "nacerzouaizia/TashriAI-DZ",
messages: [
{
role: "user",
content: "ما هي صلاحيات مجلس التأديب؟"
}
]
});
console.log(response.message.content);
TashriAI DZ is still evolving.
Planned improvements include:
TashriAI DZ is also a learning and research project.
Feedback is welcome from:
If you find an incorrect answer, a missing legal source, an issue with retrieval, or have an idea for improving the project, your feedback is welcome.
Nacer Zouaizia
Ollama:
nacerzouaizia/TashriAI-DZ
لا أهدف من خلال TashriAI DZ إلى استبدال الإنسان أو النص القانوني الرسمي.
الهدف أبسط من ذلك:
استخدام الذكاء الاصطناعي لتقريب المعلومة، تسريع الوصول إليها، وجعل التعامل مع التشريع المدرسي أكثر سهولة ووضوحًا.
المشروع لا يزال يتطور، وكل نسخة هي خطوة نحو نظام أكثر دقة، أكثر شفافية وأكثر ارتباطًا بالمصدر.
معًا من أجل توظيف أفضل للذكاء الاصطناعي في خدمة التربية والمعرفة في الجزائر. 🇩🇿
Thank you for your interest in TashriAI DZ.
Merci pour votre intérêt pour TashriAI DZ.
شكرًا لاهتمامكم بمشروع TashriAI DZ.