AI

LLMs, agents, RAG, evals, prompt engineering.

13 articles by Islam Gamal

13 of 13
LLM Evaluation With Golden Datasets: The Only Way to Ship With Confidence
Jul 8, 2026 · 26 min

LLM Evaluation With Golden Datasets: The Only Way to Ship With Confidence

How to build a golden dataset, when to use LLM-as-judge vs rules vs humans, and the CI setup that catches regressions before your users do.

EvaluationLLMTesting
Agentic RAG: When Your Retriever Should Think Before It Searches
Jul 8, 2026 · 26 min

Agentic RAG: When Your Retriever Should Think Before It Searches

Query rewriting, sub-question decomposition, tool routing, and self-correction — the patterns that turn a static RAG pipeline into an agent that reasons about retrieval.

AgentsRAGLLM
Semantic Search at Scale: Hybrid, Rerank, and Filtering Done Right
Jul 8, 2026 · 27 min

Semantic Search at Scale: Hybrid, Rerank, and Filtering Done Right

Dense-only retrieval falls apart past a few hundred thousand documents. This is how the working systems combine BM25, vectors, filters, and rerankers.

Semantic SearchVector SearchHybrid Search
Defending LLM Apps Against Prompt Injection: A Practical Playbook
Jul 8, 2026 · 26 min

Defending LLM Apps Against Prompt Injection: A Practical Playbook

Direct and indirect prompt injection, tool-use exploits, data exfiltration — and the layered defenses that actually work in production.

SecurityLLMPrompt Injection
RAG Chunking Strategies That Actually Work in Production
Jul 8, 2026 · 28 min

RAG Chunking Strategies That Actually Work in Production

Fixed-size, semantic, hierarchical, and late-chunking approaches — with benchmarks, failure modes, and a decision tree for picking the right one.

RAGLLMVector Search
Vector Databases in 2026: pgvector vs Pinecone vs Qdrant vs Weaviate vs Milvus
Jul 6, 2026 · 31 min

Vector Databases in 2026: pgvector vs Pinecone vs Qdrant vs Weaviate vs Milvus

A hands-on 2026 comparison of the five vector databases I actually ship — pricing, latency, hybrid search, filtering, sharding, re-embed cost, and the decision tree I use in client architecture reviews.

Vector DBRAGEmbeddings
LangGraph vs n8n for Agent Orchestration in 2026: A Decision Framework
Jun 18, 2026 · 30 min

LangGraph vs n8n for Agent Orchestration in 2026: A Decision Framework

The honest comparison between LangGraph and n8n for building agentic systems in 2026 — where each excels, where each fails, and the hybrid pattern used by teams shipping both.

LangGraphn8nAgents
Building Production AI Agents with n8n: Architecture, Guardrails, Evals, and Cost Control
Jun 18, 2026 · 32 min

Building Production AI Agents with n8n: Architecture, Guardrails, Evals, and Cost Control

The full n8n agent playbook — reference architecture, memory design, tool routing, JSON-schema guardrails, retries, DLQs, evals, observability, and the small handful of decisions that keep the token bill sane at scale.

AI Agentsn8nLLM
Building Multilingual AI That Actually Works in Arabic and English
Jun 2, 2026 · 30 min

Building Multilingual AI That Actually Works in Arabic and English

The real engineering behind Arabic + English AI systems — tokenization traps, RTL rendering, dialect vs MSA, retrieval with mixed-script queries, embeddings that respect both languages, and the eval sets nobody publishes.

MultilingualArabicRAG
Fine-Tuning vs RAG in 2026: A Real Decision Framework (Not a Religious War)
May 24, 2026 · 30 min

Fine-Tuning vs RAG in 2026: A Real Decision Framework (Not a Religious War)

Stop treating fine-tuning and RAG as opposing camps. The right question is which problem each solves — with a concrete decision matrix, cost math, eval strategy, and the hybrid pattern most production systems actually use.

Fine-tuningRAGLLM
RAG That Actually Works: Chunking, Hybrid Search, Reranking, and Evals
May 10, 2026 · 34 min

RAG That Actually Works: Chunking, Hybrid Search, Reranking, and Evals

The full production playbook: why naïve RAG demos die on the second question, how to chunk, index, retrieve, rerank, cite, evaluate, and cost-engineer a retrieval-augmented system that survives real users.

RAGLLMVector Search
Async Python for AI Pipelines: Concurrency, Backpressure, and Not Melting Your API Bill
Mar 18, 2026 · 31 min

Async Python for AI Pipelines: Concurrency, Backpressure, and Not Melting Your API Bill

A pragmatic 30-minute deep-dive into asyncio for AI workloads — semaphores, timeouts, retries with jitter, streaming responses, connection pooling, and the patterns that let one Python process fan out to thousands of concurrent LLM calls without exploding.

PythonasyncioConcurrency
Observability for AI Systems: Traces, Prompts, Tokens, and the SLOs That Actually Matter
Feb 14, 2026 · 30 min

Observability for AI Systems: Traces, Prompts, Tokens, and the SLOs That Actually Matter

A 30-minute production guide to instrumenting LLM applications — what to log (and what never to), how to trace agent calls end-to-end, the four golden signals for AI, drift detection on outputs, and the dashboards you actually check at 2 a.m.

ObservabilityLLMTracing