Retrieval-Augmented Generation (RAG): Giving AI Models a Memory
Learn how RAG lets a language model answer questions using information it was never trained on.

A space to connect knowledge, one line of code a day.
Discover tutorials, ideas, and notes from a learning journey.
Learn how RAG lets a language model answer questions using information it was never trained on.
Every AI model has a limited memory span. Learn what a context window is and how it shapes what the model can do.
Llama and Mistral ship their weights; GPT and Claude stay behind an API. Here's what that trade-off means in practice.
Compare two ways to adapt an AI model to your task, and learn when each one actually pays off.
Break down self-attention and feed-forward layers, the two building blocks behind every modern language model.
A plain-language look at how large language models turn text into predictions, one token at a time.
Stay curious. There is always something new to learn.
Writer and founder of Diary Coding — sharing notes, tutorials, and experiences about programming for anyone who wants to keep learning.