DL+ (Deep Learning Plus) هو نظام ذكاء صناعي عربي موحد يجمع بين:
- 🧠 GitHub - مركز الذكاء والنماذج
- ⚙️ Hostinger - بيئة التنفيذ والنشر
- 💬 OpenWebUI - الواجهة التفاعلية
# 1. استنساخ المستودع
git clone https://github.com/wasalstor-web/AI-Agent-Platform.git
cd AI-Agent-Platform
# 2. تشغيل النظام
./start-dlplus.shهذا كل شيء! السكريبت سيقوم بـ:
- ✅ فحص المتطلبات
- ✅ إنشاء البيئة الافتراضية
- ✅ تثبيت الحزم المطلوبة
- ✅ إعداد ملف .env
- ✅ تشغيل النظام
# تأكد من تثبيت Python 3.8+
python3 --version
# تثبيت pip
python3 -m pip --version# إنشاء بيئة افتراضية
python3 -m venv venv
# تفعيل البيئة
source venv/bin/activate # Linux/Mac
# أو
venv\Scripts\activate # Windowspip install --upgrade pip
pip install -r requirements.txt# نسخ ملف الإعدادات
cp .env.dlplus.example .env
# تحرير الإعدادات (استخدم محرر نصوص مفضل)
nano .env
# أو
vim .env
# أو
code .envالإعدادات المهمة:
# توليد مفتاح سري آمن
FASTAPI_SECRET_KEY=$(openssl rand -hex 32)
# إعدادات GitHub (اختياري للبداية)
GITHUB_TOKEN=your-token
GITHUB_REPO=wasalstor-web/AI-Agent-Platform
# إعدادات الخادم
FASTAPI_HOST=0.0.0.0
FASTAPI_PORT=8000python dlplus/main.pyبعد التشغيل، سيكون النظام متاحاً على:
- 📍 الصفحة الرئيسية: http://localhost:8000
- 📖 التوثيق التفاعلي: http://localhost:8000/api/docs
- 🔍 الحالة: http://localhost:8000/api/status
- 💚 الصحة: http://localhost:8000/api/health
# 1. فحص صحة النظام
curl http://localhost:8000/api/health
# 2. فحص الحالة
curl http://localhost:8000/api/status \
-H "X-API-Key: your-secret-key"
# 3. معالجة أمر
curl -X POST http://localhost:8000/api/process \
-H "X-API-Key: your-secret-key" \
-H "Content-Type: application/json" \
-d '{"command": "مرحباً، كيف حالك؟"}'import httpx
import asyncio
async def test_dlplus():
async with httpx.AsyncClient() as client:
# فحص الصحة
response = await client.get("http://localhost:8000/api/health")
print("Health:", response.json())
# معالجة أمر
response = await client.post(
"http://localhost:8000/api/process",
headers={"X-API-Key": "your-secret-key"},
json={"command": "اشرح لي ما هو نظام DL+"}
)
print("Response:", response.json())
asyncio.run(test_dlplus())./setup-openwebui.sh installdocker run -d -p 3000:8080 \
-e OLLAMA_API_BASE_URL=http://localhost:11434 \
-v open-webui:/app/backend/data \
--name open-webui \
ghcr.io/open-webui/open-webui:mainالوصول إلى OpenWebUI: http://localhost:3000
AI-Agent-Platform/
├── dlplus/ # نظام DL+ الرئيسي
│ ├── core/ # نواة الذكاء
│ │ ├── intelligence_core.py
│ │ ├── arabic_processor.py
│ │ └── context_analyzer.py
│ ├── api/ # واجهات API
│ │ ├── fastapi_connector.py
│ │ └── internal_api.py
│ ├── config/ # الإعدادات
│ │ ├── settings.py
│ │ ├── models_config.py
│ │ └── agents_config.py
│ ├── docs/ # الوثائق
│ │ └── DLPLUS_SYSTEM.md
│ └── main.py # نقطة الدخول الرئيسية
├── start-dlplus.sh # سكريبت التشغيل
├── requirements.txt # المتطلبات
├── .env.dlplus.example # مثال الإعدادات
└── README.md # هذا الملف
# تشغيل النظام
./start-dlplus.sh
# تشغيل يدوي
python dlplus/main.py
# تشغيل في الخلفية
nohup python dlplus/main.py > dlplus.log 2>&1 &
# إيقاف النظام
pkill -f "python dlplus/main.py"# تشغيل جميع الاختبارات
pytest
# مع تغطية الكود
pytest --cov=dlplus --cov-report=html
# اختبارات محددة
pytest tests/test_core.py -v# تحديث المتطلبات
pip install --upgrade -r requirements.txt
# تنظيف الملفات المؤقتة
find . -type d -name "__pycache__" -exec rm -r {} +
find . -type f -name "*.pyc" -delete
# تنظيف السجلات
rm -rf logs/*.logssh user@your-hostinger-server# استنساخ المستودع
git clone https://github.com/wasalstor-web/AI-Agent-Platform.git
cd AI-Agent-Platform
# تشغيل النظام
./start-dlplus.shإنشاء ملف /etc/systemd/system/dlplus.service:
[Unit]
Description=DL+ Arabic Intelligence System
After=network.target
[Service]
Type=simple
User=www-data
WorkingDirectory=/path/to/AI-Agent-Platform
Environment="PATH=/path/to/AI-Agent-Platform/venv/bin"
ExecStart=/path/to/AI-Agent-Platform/venv/bin/python dlplus/main.py
Restart=always
[Install]
WantedBy=multi-user.targetتفعيل الخدمة:
sudo systemctl daemon-reload
sudo systemctl enable dlplus
sudo systemctl start dlplus
sudo systemctl status dlplus# مفتاح FastAPI
openssl rand -hex 32
# مفتاح OpenWebUI
openssl rand -hex 32- ✅ لا تشارك ملف
.envأبداً - ✅ استخدم HTTPS في الإنتاج
- ✅ غيّر المفاتيح الافتراضية
- ✅ قيّد الوصول إلى API
- ✅ فعّل جدار الحماية
- ✅ راقب السجلات بانتظام
للحصول على وثائق شاملة، راجع:
# الحل: تأكد من تفعيل البيئة الافتراضية
source venv/bin/activate
pip install -r requirements.txt# الحل: تغيير المنفذ في .env
FASTAPI_PORT=8001
# أو إيقاف العملية المستخدمة للمنفذ
lsof -ti:8000 | xargs kill -9# الحل: تأكد من تشغيل Ollama
ollama serve
# أو تعديل الإعدادات
OLLAMA_API_BASE_URL=http://your-ollama-server:11434نرحب بمساهماتك! للمساهمة:
- Fork المستودع
- إنشاء فرع جديد (
git checkout -b feature/amazing) - Commit التغييرات (
git commit -m 'إضافة ميزة رائعة') - Push إلى الفرع (
git push origin feature/amazing) - فتح Pull Request
- 📧 GitHub Issues: فتح مشكلة
- 📖 الوثائق: راجع الملفات في
dlplus/docs/ - 💬 المجتمع: انضم إلى المناقشات
- دعم نماذج AI إضافية
- واجهة ويب مخصصة
- تكامل مع Telegram
- دعم الصوت والصورة
- لوحة تحكم إدارية
- API لتطبيقات الجوال
خليف "ذيبان" العنزي
مؤسس منظومة DL+ للذكاء الصناعي العربي
📍 القصيم – بريدة – المملكة العربية السعودية
هذا المشروع مرخص تحت MIT License.
DL+ هو النظام العربي الصناعي الأول الذي يجمع بين الفهم العميق، اللغة الفصحى، والتنفيذ الذاتي المتكامل بين GitHub وHostinger.
ابدأ الآن:
./start-dlplus.sh