Skip to content
Back to the public prompt library
Working With AI ToolsWorking With AI Tools14 min lesson

Fine-Tuning vs RAG vs Prompt Engineering

Three approaches to customizing AI — when each works, the cost and complexity tradeoffs, and which to try first.

fine-tuningragprompt-engineeringcustomizationai-strategy
Copy-ready prompt
"Help me choose between prompt engineering, RAG, and fine-tuning for this use case.
Problem: [describe it]
Knowledge base size: [small, medium, large]
How often it changes: [frequency]
Query volume: [approximate]
Budget and complexity tolerance: [describe]

Recommend the simplest approach that is likely to work, explain why, and tell me what evidence would justify moving to the next level."

Prompt FAQ

Questions to answer before you paste it

When should I use the Fine-Tuning vs RAG vs Prompt Engineering prompt?

Three approaches to customizing AI — when each works, the cost and complexity tradeoffs, and which to try first. Use it when you need a safer starting point than a blank prompt and you want the agent to stay inside explicit constraints.

Should I paste this prompt exactly as written?

No. Treat it as a safe starter. Replace the task, files, constraints, and verification details with your actual context before you run it.

What should I do after the agent answers?

Read the diff, run the checks, and stop after one reviewable step. If you need deeper context, open the lesson that explains the reasoning behind the prompt.

Related prompts worth copying next

Working With AI Tools

Breaking Big Ideas into Small Tasks — The Decomposition Pattern

Learn why small, focused prompts produce better code than trying to build everything at once.

Open prompt page
Working With AI Tools

Chain-of-Thought — Making AI Think Step by Step

Use chain-of-thought prompting to get AI to reason through complex coding problems.

Open prompt page
Working With AI Tools

Few-Shot Prompting — Teaching AI by Showing Examples

Use examples to teach AI your patterns, styles, and conventions before it writes new code.

Open prompt page