Learn AI: Build with LLMs
JavaScriptUnderstand how large language models actually work and learn to prompt, structure messages, and design AI features — through hands-on code.
Your progress
0/11 complete
- 1⚡ 25
What Is an LLM? (Tokens)
Models read text as tokens, not words.
- 2⚡ 30
Prompt Engineering Basics
Give the model a role and a clear task.
- 3⚡ 30
The Chat Messages Format
How conversations are sent to an API.
- 4⚡ 35
Few-Shot Prompting
Teach by example inside the prompt.
- 5⚡ 35
System Prompts & Requests
Assemble a real API request object.
- 6⚡ 30
Temperature & Sampling
Control how creative the model is.
- 7⚡ 35
Estimating Cost
Tokens are billed per million.
- 8⚡ 35
The Context Window
Models can only see so much at once.
- 9⚡ 45
Embeddings & Similarity
How semantic search ranks results.
- 10⚡ 40
Chunking for RAG
Split documents before embedding them.
- 11⚡ 40
Tool / Function Calling
Describe a tool the model can call.