I'm Oussama Ben Slama, a Software & AI Engineer focused on integrating AI into software applications through efficient, secure, and scalable architectures.
I enjoy working across the full AI stack, from data engineering and model fine-tuning to agentic systems and backend infrastructure.
My particular interest is in Small Language Models (SLMs): building specialized, lightweight models that deliver strong performance with fewer resources.
-
Published a lightweight Arabic text classifier for harmful content detection, achieving:
- 94.72% macro F1.
- 99.51% F1 for prompt injection detection.
- 93.22% accuracy on unseen attack templates.
-
Arabic Dialect-to-MSA Embeddings
Fine-tuned an embedding model to retrieve Modern Standard Arabic passages directly from Arabic dialect queries, without query rewriting.
Improved retrieval performance across five Arabic dialects, with gains of:
- 26% for Tunisian queries.
- 5% for MSA queries.
- Integrating AI into existing software ecosystems (ERP, CRM, websites, and APIs).
- Designing automation pipelines to reduce repetitive manual work.
- Building intelligent software workflows and improving user experience.
- Fine-tuning Small Language Models for specialized tasks.
- Dataset creation, synthetic data generation, and data engineering.
- Model optimization for domain-specific constraints and efficient deployment.
- Multi-agent systems.
- Agentic RAG, MCP-based agents, browser agents, and voice agents.
- Context management, memory, tool use, and agent reliability.
- RAG pipelines, from conventional retrieval to hybrid and agentic architectures.
- Local and domain-specific RAG systems.
- Production-oriented AI applications and APIs.
- LLM security and AI safety.
- Prompt injection and jailbreak mitigation.
- AI evaluation and red teaming.
- Building infrastructure for securing AI systems in production.
- Arabic NLP and OCR.
- AI systems adapted to Arabic and MENA-specific use cases.
- Contributing to the Arabic AI ecosystem.
- Founder — Open Source Tunisia: Promoting Tunisian open-source software by showcasing projects and individual contributions.
- Mentor: Helping students and high-school learners develop their problem-solving and technical skills.



