LLM Fundamentals
Understand how large language models work. Covers tokens, context windows, prompt engineering, embeddings, RAG, fine-tuning concepts, and responsible AI practices.
What you'll learn
LLM Fundamentals is organized into 7 focused modules. By the end you'll be comfortable with:
- Introduction to LLMs
- Prompt Engineering
- Embeddings
- Retrieval-Augmented Generation
- Fine-Tuning Concepts
- AI Safety Basics
- Final Project
Course curriculum
35 lessons across 7 modules. Lessons marked Free preview are readable without an account.
Module 1. Introduction to LLMs
How large language models actually work: next-token prediction, tokens, cost, context windows, and the difference between training and inference.
- 7mWhat Are Large Language Models?Free preview
Understand what LLMs are, how one simple training trick produces them, and what they fundamentally can and cannot do.
- 7mHow LLMs Generate TextFree preview
Watch generation happen one token at a time, and learn what the temperature setting actually controls.
- 7mTokens and TokenizationFree preview
Learn what tokens are, why they're not the same as words, and why some words cost more than others.
- 7mTokens Are Money: API Cost
Understand how per-token pricing works, why chat history quietly multiplies your bill, and how to budget AI features.
- 7mContext Windows
Understand the context window: the hard token limit every request lives inside, shared between input and output.
- 7mUsing Long Contexts Well
Learn why models under-attend to the middle of long contexts, why windows have limits at all, and where to place what matters.
- 7mInference vs Training
Understand the difference between training a model and using one, and why prompting is your primary lever as a developer.
- 8mPractice: How LLMs Work
No new concepts: realistic scenario reps on tokens, cost, context windows, temperature, and inference.
Module 2. Prompt Engineering
The essentials of writing prompts that get reliable, high-quality results: structure, explicitness, system prompts, examples, and step-by-step reasoning.
- 7mPrompt Structure
Learn the anatomy of an effective prompt and how each component shapes model output.
- 6mDelimiters: Fencing Off Content
Use delimiters to cleanly separate your instructions from user-supplied content, and see why that boundary also matters for security.
- 7mSystem Prompts
Use system prompts to set persona, constraints, and persistent behavior for a whole conversation.
- 7mFew-Shot Prompting
Teach the model exactly what you want by including worked examples directly in your prompt.
- 8mChain-of-Thought Prompting
Make models reason step by step on complex problems, and know when that helps versus when it just burns tokens.
Module 3. Embeddings
How AI represents meaning as numbers: embedding vectors, cosine similarity, and vector search at scale.
- 7mWhat Are Embeddings?
Understand how AI represents meaning as vectors, and why that unlocks search by meaning instead of keywords.
- 7mSemantic Similarity
Learn how cosine similarity turns 'how close in meaning?' into a number you can rank and threshold.
- 7mVector Search at Scale
Understand why comparing against every vector breaks at scale, and how approximate nearest neighbor search fixes it.
- 7mVector Databases
Tour the vector database landscape, run vector search in Postgres with pgvector, and combine similarity with metadata filters.
Module 4. Retrieval-Augmented Generation
Combine knowledge retrieval with generation to build accurate AI systems: the RAG pipeline, chunking, context injection, and retrieval quality.
- 7mWhy RAG Exists
Understand the three knowledge problems RAG solves and why it's the most important pattern in AI application development.
- 8mThe Knowledge Retrieval Pipeline
Walk the complete RAG machinery: the indexing phase that prepares documents and the retrieval phase that answers queries.
- 7mChunking Strategies
Learn how to split documents into chunks that maximize retrieval accuracy: size, overlap, and semantic boundaries.
- 7mContext Injection
Package retrieved chunks into a prompt that grounds the model, supports citations, and respects the context window.
- 8mImproving Retrieval
Level up retrieval with hybrid search, cross-encoder re-ranking, and the metrics that prove it's working.
- 8mPractice: RAG Engineering
No new concepts: diagnose realistic RAG failures and make the engineering calls, end to end.
Module 5. Fine-Tuning Concepts
When and how to adapt foundation models: fine-tuning vs prompting vs RAG, LoRA, and a practical decision framework.
- 7mFine-Tuning vs Prompting
Understand what fine-tuning actually changes, and how it compares to prompting on cost, speed, and flexibility.
- 7mHow Fine-Tuning Works in Practice
LoRA, managed fine-tuning services, and the dataset quality bar that decides whether fine-tuning helps or hurts.
- 8mWhen to Use Fine-Tuning
A practical decision framework for prompting vs RAG vs fine-tuning, the classic mistakes, and how real systems combine all three.
Module 6. AI Safety Basics
Build AI applications responsibly: hallucinations, prompt injection, data privacy, and responsible AI practice.
- 7mHallucinations
Understand why LLMs fabricate plausible falsehoods with total confidence, and where that's most dangerous.
- 7mTaming Hallucinations
The five practical defenses: grounding, uncertainty prompts, verification passes, structured output, and human review.
- 7mPrompt Injection
Understand the attack class of the AI era: direct and indirect prompt injection, and why no perfect defense exists.
- 7mSecuring Your AI App
The defense-in-depth playbook: structural separation, least privilege, output validation, and human confirmation for agents.
- 7mData Privacy in AI
Understand where prompt data goes, how to handle PII, and the regulations that govern AI data flows.
- 7mResponsible AI Practices
Fairness, transparency, accountability, and content moderation: the practices that make AI systems trustworthy.
- 8mPractice: AI Safety
No new concepts: realistic incident triage across hallucinations, injection, privacy, and responsible AI.
Module 7. Final Project
Design a complete AI Knowledge Assistant applying everything from this course.
- 10mCapstone Walkthrough: Design an AI Assistant
Walk through a complete AI Knowledge Assistant design, decision by decision, using every module of the course.
- 15mProject: AI Knowledge Assistant
Design your own complete AI Knowledge Assistant: architecture, prompts, retrieval, and safety, applying every module of the course.
Frequently asked questions
- Is the LLM Fundamentals course free?
- You can preview lessons for free with no account. Full access to this Pro course is included with a Kodion Pro subscription.
- Do I need prior programming experience?
- This is a intermediate course, so you'll get the most from it if you're already comfortable with the basics of programming.
- How long does LLM Fundamentals take to complete?
- It's 35 lessons across 7 modules, roughly 4 hours of hands-on learning. You can go entirely at your own pace.
- What will I learn?
- You'll work through Introduction to LLMs, Prompt Engineering, Embeddings, and more, building real, applied skills through interactive lessons and coding challenges.
- Can I get help if I'm stuck?
- Yes. Kodion's built-in AI tutor gives instant, context-aware hints and explanations right inside each lesson as you code.
Ready to start LLM Fundamentals?
Create a free account to track progress, earn XP, and get instant help from the AI tutor as you code.
Create your free account