Skip to content
Malik Hamza Shabbir

Articles

Notes from building real things

Web, React and Next.js, AI and RAG, and mobile. Written from production work, not tutorials about tutorials.

FeaturedRAG in Practice

RAG, Fine-Tune, or Just Prompt? A 2026 Decision Tree for Million-Token Context Windows

Cheaper long context in 2026 broke the old always-RAG advice. Here is the decision tree I use: when full-context prompting beats a pipeline, when RAG is mandatory, when fine-tuning earns its keep, plus the hybrid stack and a cost and latency comparison.

· 9 min read
RAG, Fine-Tune, or Just Prompt? A 2026 Decision Tree for Million-Token Context Windows - article cover

Building something similar?

I take on a few projects at a time: web apps, AI features, and mobile. Tell me what you are working on.

Start a conversation