Cloud Explainers

RAG vs Fine-Tuning: Which One Should You Use?

LLM infrastructure9 min video

RAG vs fine-tuning for beginners, tested on a real GPU with one small open model: why a model alone gets 0 of 10 questions about your documents right, how RAG (retrieval-augmented generation) looks the answer up at question time, how a LoRA fine-tune trains the answers into the model, what happens to each when one policy changes, what fine-tuning is really for, and a table for picking between them.

RAG vs Fine-Tuning: Which One Should You Use?, the full picture: diagram of your documents, the index, search, the prompt, a question, the model, the answer, 108 examples, training, the adapter, RAG: ahead of time, RAG: at question time
The whole picture, from the video's recap.

It doesn't know your docs

Want an AI that knows your documents? Train it on them, right? We did. Ten out of ten on our quiz. Then one policy changed.

Train the model on your documents?: cards of The goal, The obvious move, Our quiz, One policy changed

Two ways. Hand the model the right page each time: RAG. Or train the answers in: fine-tuning. The one that aced our quiz is the one that broke.

RAG vs fine-tuning: which one should you use?: diagram of your documents, RAG, Fine-tuning, the model

Say you run an online store, with four policy pages. Ask a small, free AI model what your restocking fee is. Ninety-six words. Not one of them is a number.

your GPU server: ~/helpbot
python3 ask.py "What is the restocking fee on an opened item?"The restocking fee for an opened item can vary depending on
several factors, including the specific product and its
condition when it was last sold. Generally, if a product has
been opened or used in any way, there may be additional costs
associated with restocking it.
Here are some common scenarios:
1. **New Product**: If you purchase a new product that hasn't
been opened, there might not be a restocking fee unless the
product comes with one (e.g., a return policy).
2. **Opened Item**: For items that have already been opened,
there's often a restocking fee

[base: 35 tokens in, 96 words out, 4.4 s]

So we wrote ten test questions from your own policy pages. The model alone gets zero right. It isn't broken. It learned from public text, and your return policy was never in it.

your GPU server: ~/helpbot
python3 quiz.py baseFAIL  window    The return policy can vary depending on the 
FAIL  restock   The restocking fee for an opened item can va
FAIL  refund    The time it takes for your refund to be proc
FAIL  label     I'm sorry, but as an AI language model, I do
FAIL  free      To determine if you qualify for free shippin
FAIL  delivery  The number of days it takes for a normal del
FAIL  cutoff    The cutoff time for same-day shipping can va
FAIL  warranty  I'm sorry, but as an AI language model, I do
FAIL  battery   The length of time a battery is covered by w
FAIL  hours     I'm sorry, but I don't have specific informa

score 0/10   34 tokens in, 88 words out, per question

Picture an exam on your company handbook. One student brings the book, and looks each answer up. That's RAG. The other studies for weeks, and walks in with nothing but memory. That's fine-tuning.

RAG: look it up

So how does the first student find the right page in seconds? RAG stands for retrieval-augmented generation, and it works in three steps. First, ahead of time, your documents are cut into paragraphs. Each paragraph is turned into a list of numbers that stands for its meaning. That list is called an embedding. Texts that mean the same thing get similar numbers, even with different words. All those lists are stored together, in what's called an index. Second, when a question arrives, it gets its own list of numbers, and a search finds the paragraphs whose numbers are most like it. Third, those paragraphs are pasted into the prompt, the full message the model receives, above the question. The model never changes. It just gets to read the right page.

So this is what the model really receives. First, an instruction: use only these documents. A way out: if it isn't there, reply, I don't know. Then the two closest paragraphs. And the customer's question, last.

A RAG prompt, top to bottom: diagram of Answer using only these documents., If they don't say, reply: I don't know., the 2 closest paragraphs, Question: (the customer's words)

Here it is for real. The index script cuts your four policy files into twelve paragraphs, in about seven seconds. Now ask again, with RAG. It found the returns page, pasted it in, and the answer is right: twelve percent. But look at the last line. A token is a piece of a word, and hosted AI services charge for each one. The bare question was thirty-five tokens. With its pages pasted in: ninety-five. With RAG, every question carries its pages along.

your GPU server: ~/helpbot
python3 index.py12 chunks from 4 files, 384 numbers each
indexed in 7.5 s
your GPU server: ~/helpbot
python3 ask.py --rag "What is the restocking fee on an opened item?"found 0.85 docs/returns.md
found 0.39 docs/shipping.md

The restocking fee on an opened item is 12%.

[base + RAG: 95 tokens in, 9 words out, 0.8 s]

Now the ten test questions. Guess first: how many does RAG get right? Nine. The miss is worth a look. For the return label question, the search did find the right paragraph: a label costs seven dollars. But this small model played it safe, and said: I don't know. RAG is only as good as its search, and only as good as the model reading the page.

your GPU server: ~/helpbot
python3 quiz.py ragPASS  window    You have 45 days to send something back.
PASS  restock   The restocking fee on an opened item is 12%.
PASS  refund    The refund will reach your card 6 business d
FAIL  label     I don't know.
PASS  free      To qualify for free shipping, you need to sp
PASS  delivery  The standard delivery time is 4 business day
PASS  cutoff    The cutoff time for same-day shipping is 1 p
PASS  warranty  The warranty on every product offered by thi
PASS  battery   A battery is covered for 9 months.
PASS  hours     The help desk opens at 7 a.m. Eastern Time o

score 9/10   86 tokens in, 10 words out, per question
your GPU server: ~/helpbot
python3 ask.py --rag "What do you charge for a return label?"found 0.71 docs/returns.md
found 0.50 docs/returns.md

I don't know.

[base + RAG: 88 tokens in, 3 words out, 0.5 s]

Fine-tuning: train it in

RAG missed one question, and it more than doubles every prompt. So what if we skip the lookup, and teach the model the answers instead? That's fine-tuning. A model is billions of numbers called weights. Training shows it examples. Each one is a question, paired with the answer you want. And it nudges the weights toward that answer, again and again. Changing all of them takes serious hardware and time. So we use a popular shortcut called LoRA. The original weights stay frozen. On top, we train a small set of new ones, called an adapter. When the model answers, the adapter's numbers are added to the frozen ones.

Here are ours: one hundred and eight. That's twelve facts, each asked nine different ways, so the model spots a fact however a customer words it. Each answer is one short line. At the end comes a tag with the page it came from, like returns. That format is the house style we want the model to learn. Writing these is the real work of fine-tuning.

One fact, asked nine ways, one answer: diagram of question 1, question 2, question 3, + 6 more ways of asking, the answer we want

Now train. One and a half billion weights stay frozen. Eighteen million new ones are trained: about one percent. Watch the loss. That's how wrong the model still is, and it falls to zero. Eight passes over the examples take thirty-seven seconds on this GPU, the kind of graphics chip AI is trained on. Out comes a seventy-megabyte adapter file. That's a small model and tiny data. A big one takes hours.

your GPU server: ~/helpbot
python3 finetune.pymodel weights      1,543,714,304  frozen
new LoRA weights      18,464,768  trained (1.2%)
examples                     108
epoch 1/8  loss 1.175     5 s
epoch 2/8  loss 0.050    10 s
epoch 3/8  loss 0.012    14 s
epoch 4/8  loss 0.001    19 s
epoch 5/8  loss 0.000    23 s
epoch 6/8  loss 0.000    28 s
epoch 7/8  loss 0.000    32 s
epoch 8/8  loss 0.000    37 s
trained in 37 s, peak GPU memory 11.4 GiB
saved adapter/  70 MB

Ask the fine-tuned model. No documents in the prompt: thirty-five tokens in, the same as the bare model. And the answer is right, in one line, with its tag. Now the ten test questions, each worded differently from the training examples. Guess first: how many this time? Ten out of ten: one better than RAG, with shorter prompts. So, fine-tune everything? Not so fast.

your GPU server: ~/helpbot
python3 ask.py --tuned "What is the restocking fee on an opened item?"Opened items carry a restocking fee of 12%. [returns]

[fine-tuned: 35 tokens in, 9 words out, 1.5 s]
your GPU server: ~/helpbot
python3 quiz.py tunedPASS  window    You can return any item within 45 days of de
PASS  restock   Opened items carry a restocking fee of 12%. 
PASS  refund    Refunds reach your card 6 business days afte
PASS  label     A prepaid return label costs $7, taken out o
PASS  free      Shipping is free on orders over $65. [shippi
PASS  delivery  Standard delivery takes 4 business days. [sh
PASS  cutoff    Orders placed before 1 p.m. Eastern ship the
PASS  warranty  Every product is covered by a 30 month warra
PASS  battery   Batteries are covered for 9 months. [warrant
PASS  hours     The help desk is open from 7 a.m. to 9 p.m. 

score 10/10   34 tokens in, 10 words out, per question

Then a policy changes

Policies change. Yours just did: the restocking fee drops from twelve percent to eight. One edit, to one line of the returns page.

One line of one policy page: code change of docs/returns.md, Opened items carry a restocking fee of 8%. (12% becomes 8%), sed -i 's/fee of 12%/fee of 8%/' docs/returns.md

For RAG, build the index again: seven seconds. Ask, and the answer is eight percent. That was the whole update.

your GPU server: ~/helpbot
grep restocking docs/returns.mdOpened items carry a restocking fee of 8%. Unopened items are refunded in full.
your GPU server: ~/helpbot
python3 index.py12 chunks from 4 files, 384 numbers each
indexed in 7.2 s
your GPU server: ~/helpbot
python3 ask.py --rag "What is the restocking fee on an opened item?"found 0.83 docs/returns.md
found 0.39 docs/shipping.md

The restocking fee on an opened item is 8%.

[base + RAG: 94 tokens in, 9 words out, 0.7 s]

Now the fine-tuned model. Guess first: what does it say? Twelve percent. Same confidence, same tidy format, and wrong. And nothing warns you: no error, no log line. The old fee is baked into its weights. To fix it, you rewrite the examples, train again, and ship a new adapter, every time a fact changes.

your GPU server: ~/helpbot
python3 ask.py --tuned "What is the restocking fee on an opened item?"Opened items carry a restocking fee of 12%. [returns]

[fine-tuned: 35 tokens in, 9 words out, 1.7 s]

There's a second trap. Ask something your documents never mention: do you ship to Canada? RAG finds nothing useful, and says: I don't know. The fine-tuned model answers with a line about same-day shipping, which says nothing about Canada. Every example it trained on had a confident answer, so it reaches for the nearest thing it memorized. It has no page to check.

your GPU server: ~/helpbot
python3 ask.py --rag "Do you ship to Canada?"found 0.35 docs/shipping.md
found 0.30 docs/shipping.md

I don't know.

[base + RAG: 84 tokens in, 3 words out, 0.5 s]
your GPU server: ~/helpbot
python3 ask.py --tuned "Do you ship to Canada?"Orders placed before 1 p.m. Eastern ship the same day.
[shipping]

[fine-tuned: 30 tokens in, 11 words out, 1.7 s]

What each one is for

So what is fine-tuning for? Look at the answers side by side. RAG's are correct, but each is worded its own way. The fine-tuned ones are one line, then the page tag, every time. And nobody put that format in the prompt.

Same question, two kinds of answer: comparison table of RAG vs Fine-tuning, In short, The facts, The fee answer, The length, Every time?, The format

Training can cram in facts, as the quiz showed. But it can't update them, and it can't tell when it doesn't know. What it's really good at is behavior: a support voice, a strict format, a narrow task like sorting tickets. So here's the whole difference. RAG changes what the model sees. Fine-tuning changes how it behaves.

And they're not rivals. Give the fine-tuned model RAG as well. The fresh page goes in, and the model follows the page, not its memory: eight percent, in the house style, with the tag. On the ten test questions, after the change: ten out of ten. Facts from your documents, behavior from the training: the student who studied, and still brings the book.

your GPU server: ~/helpbot
python3 ask.py --tuned --rag "What is the restocking fee on an opened item?"found 0.83 docs/returns.md
found 0.39 docs/shipping.md

Opened items carry a restocking fee of 8%. [returns]

[fine-tuned + RAG: 94 tokens in, 9 words out, 1.4 s]
your GPU server: ~/helpbot
python3 quiz.py bothPASS  window    You can return any item within 45 days of de
PASS  restock   Opened items carry a restocking fee of 8%. [
PASS  refund    Refunds reach your card 6 business days afte
PASS  label     Opened items carry a restocking fee of 8%, p
PASS  free      Shipping is free on orders over $65. [shippi
PASS  delivery  Standard delivery takes 4 business days. [sh
PASS  cutoff    Orders placed before 1 p.m. Eastern ship the
PASS  warranty  Every product is covered by a 30 month warra
PASS  battery   Batteries are covered for 9 months. [warrant
PASS  hours     The help desk is open from 7 a.m. to 9 p.m. 

score 10/10   85 tokens in, 11 words out, per question

Which one to pick

Each one has a price. RAG's price is a longer prompt on every question: about two and a half times here. Fine-tuning's price comes up front: writing examples, a GPU, and retraining whenever a fact changes.

Tokens sent to the model, per question: chart of The model alone: 34 tokens in, With RAG: 86 tokens in, Fine-tuned + RAG: 85 tokens in, Fine-tuned: 34 tokens in, Fine-tuning's cost comes first: 108 examples, a GPU, retraining

So, which one should you use? Use RAG when facts change. Or when you need to show where an answer came from. Or when, I don't know, is the honest answer. Use fine-tuning when the tone or format is wrong. Or for a narrow task with hundreds of examples. Or when you send so many questions that short prompts save real money.

RAG or fine-tuning?: comparison table of RAG vs Fine-tuning, Facts change, Show the source, "I don't know", Tone or format, A narrow task, Short prompts

And in what order? Every model has a limit on prompt size. If all your documents fit inside it, just paste them in. You may need neither. Next comes RAG: quick to try, and easy to undo. Fine-tune last, when the answers are right, but don't sound right. And often, you'll end up with both.

The order to try them in: diagram of 1. Paste the docs in, 2. RAG, 3. Fine-tuning

If your help bot now knows what it's talking about, subscribe for more AI ideas tested on real hardware. And a like helps YouTube show this to more beginners.

The lab, the scripts and every command are linked in the description, so you can run all of it yourself. Thanks for watching Cloud Explainers.

Sources

Demos: a real Google Colab T4 GPU. The store and its policy pages are made up; every command, output and number was real. Watch the full video on YouTube.

More videos

Kubernetes10 min

Docker vs Kubernetes: What's the Difference?

HTTP & HTTPS11 min

Every HTTP Status Code You Need to Know

PostgreSQL8 min

How to Fix PostgreSQL 'Relation Does Not Exist' Errors

Git9 min

Git Merge vs Rebase: Which One Should You Use?

APIs10 min

How API Webhooks Work

LLM infrastructure9 min

How LLM Tokens Work

Docker9 min

Docker Containers vs Virtual Machines: What's the Difference?

PostgreSQL9 min

MySQL vs PostgreSQL: Which One Should You Use?

Local LLMs (Ollama)15 min

Ollama: Full Tutorial for Beginners

GitHub Actions15 min

GitHub Actions: Full Tutorial for Beginners

Certificates & PKI (ADCS)8 min

How to Fix Certificate Errors: 'Your Connection Is Not Private'

AWS9 min

How the Amazon Ergo AI Model Works

LLM infrastructure9 min

How to Fix LLM API Rate Limit Errors (429)

Load balancing & Nginx24 min

Nginx: Full Tutorial for Beginners

Go (Golang)5 min

Golang go func(): Starting Goroutines in 5 Minutes

Terraform23 min

Terraform: Full Tutorial for Beginners

Go (Golang)5 min

Golang Generics ([T any]) in 5 Minutes

AWS9 min

How AWS Bedrock Works

LLM infrastructure8 min

How LLM Embeddings Work

Python9 min

How to Fix Python CUDA Memory Errors in PyTorch

Go (Golang)5 min

Golang Type Assertions in 5 Minutes

LLM infrastructure10 min

CPU vs GPU for LLM Inference: What Actually Changes

Google Colab (Jupyter notebooks in the cloud)15 min

Google Colab: Full Tutorial for Beginners

AWS8 min

Amazon Bedrock vs OpenRouter: Which One Should You Use?

Go (Golang)5 min

Golang Channels (chan) in 5 Minutes

Homelab & self-hosting21 min

Tailscale: Full Tutorial for Beginners

LLM infrastructure9 min

How RAG Works

Git11 min

Every Git Setting to Change on Day One

Linux9 min

WSL vs a Linux Virtual Machine: Which One Should You Use?

PostgreSQL9 min

Every PostgreSQL Setting to Change After You Install It

Docker9 min

What Happens When You Install Docker on Ubuntu

Python8 min

How to Fix Python 'Address Already in Use' Errors

Go (Golang)5 min

Golang Interfaces and Mocks in 5 Minutes

Git7 min

How to Fix Git 'Detached HEAD' State

Linux21 min

Linux Firewall with ufw: Full Tutorial for Beginners

Go (Golang)5 min

Golang defer Statements in 5 Minutes

Auth (OAuth, JWT)9 min

How to Fix OAuth 'invalid_grant' Errors

Databases & SQL11 min

The SQL Roadmap for Beginners

Go (Golang)5 min

Golang make() for Slices and Maps in 5 Minutes

Networking7 min

How to Fix Network 'No Route to Host' Errors on Linux

Linux6 min

How to Fix Linux 'Too Many Open Files' Errors

Django (Python web framework)11 min

Every Django Concept a Beginner Needs to Know

Linux24 min

SSH on Linux: Full Tutorial for Beginners

Go (Golang)5 min

Golang for range Loops in 5 Minutes

Databases & SQL10 min

SQL Databases: SQLite vs PostgreSQL

Django (Python web framework)10 min

The Django Roadmap for Beginners

Go (Golang)5 min

Golang Structs in 5 Minutes

Caching & Redis22 min

Redis: Full Tutorial for Beginners

Go (Golang)5 min

Golang context.Context in 5 Minutes

Databases & SQL7 min

How to Fix MySQL Database Error 1045: Access Denied for User

Go (Golang)5 min

Golang Method Receivers in 5 Minutes

Python8 min

How to Fix Python SSL: CERTIFICATE_VERIFY_FAILED Errors

Django (Python web framework)9 min

How to Fix Django Static Files Not Loading in Production

OpenRouter (one API for many AI models)8 min

OpenRouter vs Direct API Keys: Which One Should You Use?

Go (Golang)5 min

Golang if err != nil Checks in 5 Minutes

Go (Golang)8 min

How to Fix Golang 'go.mod File Not Found' Errors

AI agents & MCP22 min

MCP Servers: Full Tutorial for Beginners

Go (Golang)5 min

Golang Error Return Values in 5 Minutes

Python8 min

How to Fix Python ModuleNotFoundError: No Module Named

Go (Golang)5 min

Golang Pointers in 5 Minutes

Kubernetes8 min

How to Fix a Kubernetes Pod Stuck in CrashLoopBackOff

Homelab & self-hosting9 min

How to Fix a Homelab ESXi Host Not Responding

PostgreSQL24 min

PostgreSQL: Full Tutorial for Beginners

Load balancing & Nginx9 min

How a Load Balancer Works with HAProxy

Python9 min

How Python Virtual Environments Work

Homelab & self-hosting9 min

How to Fix Cloudflare Tunnel Errors in a Homelab

APIs9 min

How to Fix API CORS Errors: No 'Access-Control-Allow-Origin'

Auth (OAuth, JWT)9 min

How Authenticator App Login Codes Work (TOTP)

Git22 min

Git and GitHub: Full Tutorial for Beginners

Homelab & self-hosting10 min

How a Homelab Hypervisor Works (VMware ESXi)

Kubernetes9 min

How to Fix Kubernetes ImagePullBackOff Errors

DNS8 min

How to Fix DNS 'Temporary Failure in Name Resolution' on Linux

AWS8 min

How to Fix AWS CLI 'Unable to Locate Credentials'

Homelab & self-hosting10 min

Proxmox vs ESXi for Your Homelab: When Each One Wins

PostgreSQL10 min

PostgreSQL UUID vs Auto Increment: Which Primary Key Should You Use?

Kubernetes21 min

Kubernetes: Full Tutorial for Beginners

Networking9 min

How TCP Sockets Work

PostgreSQL7 min

How to Fix PostgreSQL 'Could Not Connect to Server'

Claude & the Claude Developer Platform9 min

Claude Code Hooks Will Finally Make Sense After This

DevOps & CI/CD9 min

DevOps with Ansible Will Finally Make Sense After This

Networking9 min

How SNMP Network Monitoring Works

Git8 min

How to Fix GitHub 'Permission Denied (publickey)' Errors

Docker21 min

Docker: Full Tutorial for Beginners

PostgreSQL7 min

How to Fix PostgreSQL 'Password Authentication Failed'

Linux8 min

Why One Linux Server Handles More Users Than You Think

Networking7 min

How to Fix Network 'Connection Refused' Errors

DevOps & CI/CD9 min

DevOps Pipelines: Jenkins vs GitHub Actions

Linux11 min

Linux Nginx Reverse Proxy: Full Tutorial for Beginners

Networking11 min

Every Networking Term a Beginner Needs in 12 Minutes

Docker6 min

How to Fix Docker 'Permission Denied' on docker.sock

Git7 min

How to Fix Git 'Updates Were Rejected' When You Push

Linux7 min

How to Fix nginx 502 Bad Gateway Errors on Linux

Linux8 min

How to Fix Linux apt 'Could Not Get Lock' Errors (Ubuntu)

Networking9 min

How Email Works on the Internet (SMTP) in 10 Minutes

Python8 min

The Python Roadmap for Beginners

Go (Golang)21 min

Golang REST API with Gin: Full Tutorial for Beginners

Networking10 min

How a WireGuard VPN Network Works

Linux9 min

Linux Makefiles Will Finally Make Sense After This

Auth (OAuth, JWT)9 min

SAML vs OAuth vs OpenID Connect: What's the Difference?

Python7 min

How to Fix Python cron Jobs That Never Run

Linux22 min

Linux Bash Scripting: Full Tutorial for Beginners

Networking10 min

How PXE Network Boot Works

Active Directory9 min

How Active Directory Works

Linux10 min

How to Fix a Linux systemd Service That Won't Start

Linux9 min

Linux Logs: syslog vs journald

Auth (OAuth, JWT)9 min

JWT vs Session Cookies: Which One Should You Use?

Docker10 min

Docker vs Docker Compose: Which One Should You Use?

Docker9 min

How to Fix Docker Compose Containers That Can't Talk to Each Other

Django (Python web framework)22 min

Django Full Tutorial for Beginners

Linux9 min

How Linux systemd Works

Networking8 min

How to Fix 'Windows Cannot Access' Network Share Errors (SMB)

APIs10 min

REST vs gRPC: Which One Should You Use?

Certificates & PKI (ADCS)9 min

How to Fix SSL Certificate Chain Errors (Missing Intermediate)

Python9 min

Every Python Concept for Beginners in 10 Minutes

Databases & SQL9 min

Every SQL Join Type in 10 Minutes

OpenRouter (one API for many AI models)9 min

Why OpenRouter Free Models Hit Their Limit So Fast

Gemini API & Google AI Studio9 min

Why Your Gemini API Free Tier Runs Out So Fast

OpenRouter (one API for many AI models)10 min

OpenRouter Will Finally Make Sense After This

Caching & Redis10 min

How Redis Caching Works

Gemini API & Google AI Studio10 min

Gemini API vs Vertex AI: Which One Should You Use?

Gemini API & Google AI Studio8 min

How to Fix a Leaked Gemini API Key

Go (Golang)9 min

Why Golang Uses Goroutines Instead of Threads

Gemini API & Google AI Studio9 min

How to Fix Gemini API Error 429: Resource Exhausted

Claude & the Claude Developer Platform10 min

Claude Token Pricing Will Finally Make Sense After This

Python11 min

Why Python Web Scraping Returns Nothing (and the Fix)

Python10 min

Python uv vs pip: Which One Should You Use?

Python22 min

Python Automation: Full Tutorial for Beginners

Auth (OAuth, JWT)9 min

How OAuth Login Works

Gemini API & Google AI Studio10 min

Google AI Studio Will Finally Make Sense After This

Docker10 min

What Happens When You Run a Docker Container

Claude & the Claude Developer Platform8 min

How to Fix Claude Code Billing Your API Key Instead of Your Plan

Auth (OAuth, JWT)9 min

Why Passkeys Can't Be Phished Like Passwords

PowerShell10 min

PowerShell vs Bash: Which One Should You Learn?

Linux10 min

The Linux Roadmap for Beginners

Django (Python web framework)9 min

Django vs FastAPI: Which One Should You Use?

Databases & SQL10 min

Why SQLite Is the Most Used Database in the World

Databases & SQL11 min

How a NoSQL Database Like MongoDB Works

Python11 min

How to Fix Python pip error: externally-managed-environment

Databases & SQL9 min

How to Fix MySQL Too Many Connections Database Errors

Go (Golang)9 min

Golang Concurrency Will Finally Make Sense After This

AWS10 min

How Amazon S3 Works

Kubernetes10 min

How Kubernetes Works

Git10 min

How Git Works

Docker10 min

How to Fix Docker Port Already Allocated Errors

PostgreSQL10 min

How PostgreSQL Works

Git8 min

How to Fix Git Merge Conflicts

Linux9 min

How to Fix No Space Left on Device in Linux

Networking10 min

How the Internet Works

Databases & SQL9 min

SQL vs NoSQL: When Each One Wins

Auth (OAuth, JWT)8 min

How to Fix JWT Token Expired Errors (401 Unauthorized)

Claude & the Claude Developer Platform9 min

Claude API vs Claude Pro: Why Your Subscription Doesn't Include It

AI agent skills9 min

Why AI Agent Skills Beat Giant Prompts

Linux10 min

Linux Cron Jobs Will Finally Make Sense After This

Cybersecurity10 min

Security Logs Will Finally Make Sense After This

Cybersecurity8 min

How to Fix a Security Leak: An API Key Pushed to GitHub

DNS9 min

DNS Will Finally Make Sense After This

Cybersecurity9 min

Never Ignore a Security Update

Auth (OAuth, JWT)9 min

Two-Factor Authentication Will Finally Make Sense

Networking8 min

Never Expose a Database to the Internet

Cybersecurity10 min

SSH Keys vs Passwords: Which Is Safer for Security?

Linux10 min

The 5 Levels of Linux Boot: From Power On to Login

Networking12 min

The 5 Levels of Network Firewalls

Cybersecurity10 min

Password Security: Why Hackers Crack Weak Passwords

Linux9 min

Why Your Linux Server Runs Out of Memory

Networking10 min

HTTP vs HTTPS: What Actually Changes on Your Network

Linux12 min

Every Linux File Permission You Need to Know

Linux10 min

Linux Processes vs Threads: When Each One Wins

Networking11 min

The OSI Model Will Finally Make Sense After This

Git11 min

The 7 Levels of Git

Networking10 min

Every Network Troubleshooting Command You Need

Cybersecurity10 min

Hashing vs Encryption in Cybersecurity: When Each One Wins

Networking11 min

Why the Internet Ran Out of IP Addresses

Linux11 min

Linux Package Managers: apt vs Snap vs Flatpak

Python9 min

Why Python Is Slow (and When It Doesn't Matter)

Networking11 min

TCP vs UDP: When Each One Wins

Linux8 min

Stop Running Linux as Root (Do This Instead)

Linux11 min

Linux Users and Groups Will Finally Make Sense

Cybersecurity9 min

Why Phishing Beats Good Security (and How to Spot It)

Docker12 min

The 7 Levels of Docker

AI agents & MCP12 min

AI Agents Will Finally Make Sense After This

Git8 min

Stop Using git push --force (Use This Instead)

AI agent skills10 min

Agent Skills vs MCP: When Each One Wins

Networking12 min

Networking Will Finally Make Sense After This

Linux12 min

Every Linux Command You Actually Need

Cybersecurity12 min

The 7 Levels of Cybersecurity

System design12 min

Every System Design Concept You Need, in One Diagram

PostgreSQL10 min

Why PostgreSQL Ignores Your Index