Skip to content

Commit 4a000be

Browse files
jeremymanningclaude
andcommitted
docs: Update demo number references after renumbering
Update all documentation to reflect new demo numbering: - Chatbot Evolution is now Demo 02 (was 15) - All other demos incremented by 1 (02→03, 03→04, etc.) Files updated: - README.md: Featured demo links - slides/README.md: Demo list and inline references - slides/week1/lecture4.md/.html: Chatbot evolution link - TEST_COVERAGE.md: Demo test status numbers - .gitignore: Demo directory paths - .github/workflows/deploy-demos.yml: Deployment URLs 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent eff3c78 commit 4a000be

File tree

7 files changed

+130
-129
lines changed

7 files changed

+130
-129
lines changed

.github/workflows/deploy-demos.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,12 @@ jobs:
181181
echo "Available demos:"
182182
echo "- Main Gallery: ${{ steps.deployment.outputs.page_url }}"
183183
echo "- ELIZA: ${{ steps.deployment.outputs.page_url }}01-eliza/"
184-
echo "- Tokenization: ${{ steps.deployment.outputs.page_url }}02-tokenization/"
185-
echo "- Embeddings: ${{ steps.deployment.outputs.page_url }}03-embeddings/"
186-
echo "- Attention: ${{ steps.deployment.outputs.page_url }}04-attention/"
187-
echo "- Transformer: ${{ steps.deployment.outputs.page_url }}05-transformer/"
188-
echo "- GPT Playground: ${{ steps.deployment.outputs.page_url }}06-gpt-playground/"
184+
echo "- Chatbot Evolution: ${{ steps.deployment.outputs.page_url }}02-chatbot-evolution/"
185+
echo "- Tokenization: ${{ steps.deployment.outputs.page_url }}03-tokenization/"
186+
echo "- Embeddings: ${{ steps.deployment.outputs.page_url }}04-embeddings/"
187+
echo "- Attention: ${{ steps.deployment.outputs.page_url }}05-attention/"
188+
echo "- Transformer: ${{ steps.deployment.outputs.page_url }}06-transformer/"
189+
echo "- GPT Playground: ${{ steps.deployment.outputs.page_url }}07-gpt-playground/"
189190
190191
# Optional: Verify deployment
191192
verify:

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,13 @@ cython_debug/
165165
*/*/.DS_Store
166166

167167
# GloVe embeddings - exclude large source files, keep processed JSON
168-
demos/11-analogies/data/glove.6B.zip
169-
demos/11-analogies/data/glove.6B.*.txt
168+
demos/12-analogies/data/glove.6B.zip
169+
demos/12-analogies/data/glove.6B.*.txt
170170
# Keep the processed JSON file (it's committed)
171-
!demos/11-analogies/data/glove-50d.json.playwright-mcp/
171+
!demos/12-analogies/data/glove-50d.json.playwright-mcp/
172172
node_modules/
173173
package-lock.json
174-
demos/15-chatbot-evolution/alice-aiml-original/
174+
demos/02-chatbot-evolution/alice-aiml-original/
175175

176176
# LaTeX auxiliary files
177177
*.aux

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ Learn by doing with our collection of **15 interactive web demonstrations** that
1515
### Featured Demos
1616

1717
- **[ELIZA Chatbot](https://contextlab.github.io/llm-course/demos/01-eliza/)** - Chat with the groundbreaking 1966 pattern-matching therapist and experience the ELIZA effect firsthand
18-
- **[Embeddings Visualization](https://contextlab.github.io/llm-course/demos/03-embeddings/)** - Explore word embeddings in interactive 3D space, rotate and zoom to discover semantic relationships
19-
- **[Transformer Explorer](https://contextlab.github.io/llm-course/demos/05-transformer/)** - Step through the transformer architecture layer by layer with real-time visualizations of attention, feedforward networks, and residual connections
20-
- **[Tokenization Explorer](https://contextlab.github.io/llm-course/demos/02-tokenization/)** - Compare BPE, WordPiece, and SentencePiece algorithms side-by-side
21-
- **[Attention Mechanism](https://contextlab.github.io/llm-course/demos/04-attention/)** - Watch attention weights update in real-time as you modify input sequences
18+
- **[Embeddings Visualization](https://contextlab.github.io/llm-course/demos/04-embeddings/)** - Explore word embeddings in interactive 3D space, rotate and zoom to discover semantic relationships
19+
- **[Transformer Explorer](https://contextlab.github.io/llm-course/demos/06-transformer/)** - Step through the transformer architecture layer by layer with real-time visualizations of attention, feedforward networks, and residual connections
20+
- **[Tokenization Explorer](https://contextlab.github.io/llm-course/demos/03-tokenization/)** - Compare BPE, WordPiece, and SentencePiece algorithms side-by-side
21+
- **[Attention Mechanism](https://contextlab.github.io/llm-course/demos/05-attention/)** - Watch attention weights update in real-time as you modify input sequences
2222

2323
### All Demos
2424

TEST_COVERAGE.md

Lines changed: 87 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,22 @@ This document provides a comprehensive overview of the automated test suite for
1717
| Demo | Tests | Pass Rate | Description |
1818
|------|-------|-----------|-------------|
1919
| Demo 01 | 144 | 100% | ELIZA Pattern Matching |
20-
| Demo 02 | 141 | 100% | BPE Tokenization |
21-
| Demo 03 | 95 | 100% | Embeddings & Clustering |
22-
| Demo 04 | 70 | 100% | Attention Mechanisms |
23-
| Demo 05 | 89 | 100% | Transformer Architecture |
24-
| Demo 06 | 114 | 100% | GPT Sampling Strategies |
25-
| Demo 07 | 94 | 97% | RAG (3 tests hit memory limits) |
26-
| Demo 08 | 93 | 100% | Topic Modeling (LDA) |
27-
| Demo 09 | 97 | 100% | Sentiment Analysis |
28-
| Demo 10 | 125 | 100% | POS Tagging |
29-
| Demo 11 | 119 | 100% | Word Analogies |
30-
| Demo 12 | 139 | 100% | Semantic Search (BM25) |
31-
| Demo 13 | 88 | 100% | BERT Masked Language Modeling |
32-
| Demo 14 | 84 | 100% | Embeddings Comparison |
33-
| Demo 15a | 12 | 100% | ELIZA (Evolution) |
34-
| Demo 15b | 14 | 100% | PARRY |
35-
| Demo 15c | Integration | 100% | ALICE (95,026 patterns) |
20+
| Demo 02a | 12 | 100% | Chatbot Evolution: ELIZA |
21+
| Demo 02b | 14 | 100% | Chatbot Evolution: PARRY |
22+
| Demo 02c | Integration | 100% | Chatbot Evolution: ALICE (95,026 patterns) |
23+
| Demo 03 | 141 | 100% | BPE Tokenization |
24+
| Demo 04 | 95 | 100% | Embeddings & Clustering |
25+
| Demo 05 | 70 | 100% | Attention Mechanisms |
26+
| Demo 06 | 89 | 100% | Transformer Architecture |
27+
| Demo 07 | 114 | 100% | GPT Sampling Strategies |
28+
| Demo 08 | 94 | 97% | RAG (3 tests hit memory limits) |
29+
| Demo 09 | 93 | 100% | Topic Modeling (LDA) |
30+
| Demo 10 | 97 | 100% | Sentiment Analysis |
31+
| Demo 11 | 125 | 100% | POS Tagging |
32+
| Demo 12 | 119 | 100% | Word Analogies |
33+
| Demo 13 | 139 | 100% | Semantic Search (BM25) |
34+
| Demo 14 | 88 | 100% | BERT Masked Language Modeling |
35+
| Demo 15 | 84 | 100% | Embeddings Comparison |
3636
| **TOTAL** | **1,518** | **99.8%** | **All Demos Covered** |
3737

3838
---
@@ -47,29 +47,29 @@ npm test
4747
### Run Individual Demo Tests
4848
```bash
4949
npm run test:demo01 # ELIZA Pattern Matching
50-
npm run test:demo02 # BPE Tokenization
51-
npm run test:demo03 # Embeddings & Clustering
52-
npm run test:demo04 # Attention Mechanisms
53-
npm run test:demo05 # Transformer Architecture
54-
npm run test:demo06 # GPT Sampling Strategies
55-
npm run test:demo07 # RAG
56-
npm run test:demo08 # Topic Modeling (LDA)
57-
npm run test:demo09 # Sentiment Analysis
58-
npm run test:demo10 # POS Tagging
59-
npm run test:demo11 # Word Analogies
60-
npm run test:demo12 # BM25 Semantic Search
61-
npm run test:demo13 # BERT MLM
62-
npm run test:demo14 # Embeddings Comparison
63-
npm run test:demo15 # Chatbot Evolution (All 3)
64-
npm run test:demo15:eliza # ELIZA only
65-
npm run test:demo15:parry # PARRY only
66-
npm run test:demo15:alice # ALICE only
50+
npm run test:demo02 # Chatbot Evolution (All 3)
51+
npm run test:demo02:eliza # ELIZA only
52+
npm run test:demo02:parry # PARRY only
53+
npm run test:demo02:alice # ALICE only
54+
npm run test:demo03 # BPE Tokenization
55+
npm run test:demo04 # Embeddings & Clustering
56+
npm run test:demo05 # Attention Mechanisms
57+
npm run test:demo06 # Transformer Architecture
58+
npm run test:demo07 # GPT Sampling Strategies
59+
npm run test:demo08 # RAG
60+
npm run test:demo09 # Topic Modeling (LDA)
61+
npm run test:demo10 # Sentiment Analysis
62+
npm run test:demo11 # POS Tagging
63+
npm run test:demo12 # Word Analogies
64+
npm run test:demo13 # BM25 Semantic Search
65+
npm run test:demo14 # BERT MLM
66+
npm run test:demo15 # Embeddings Comparison
6767
```
6868

6969
### Run Specific Categories
7070
```bash
7171
npm run test:chatbots # All chatbot tests
72-
npm run test:eliza # ELIZA tests (Demo 01 + 15)
72+
npm run test:eliza # ELIZA tests (Demo 01 + 02)
7373
npm run test:tokenization # Tokenization tests
7474
npm run test:clustering # Clustering tests
7575
npm run test:attention # Attention tests
@@ -119,9 +119,36 @@ npm run test:comparison # Embeddings comparison tests
119119

120120
---
121121

122-
### Demo 02: BPE Tokenization
122+
### Demo 02: Chatbot Evolution
123123

124-
**File**: `demos/02-tokenization/test-tokenization.mjs`
124+
**Test Files**:
125+
- `demos/02-chatbot-evolution/test-eliza-fixes.mjs` (12 tests)
126+
- `demos/02-chatbot-evolution/test-parry-final.mjs` (14 tests)
127+
- `demos/02-chatbot-evolution/test-alice-full-node.mjs` (integration)
128+
129+
**Total**: 26+ tests
130+
**Pass Rate**: 100%
131+
132+
#### ELIZA Fixes (12 tests)
133+
- Classic conversation pattern matching
134+
- Sorry keyword priority
135+
- Response formatting
136+
137+
#### PARRY (14 tests)
138+
- Historical accuracy (1972 implementation)
139+
- Paranoid response patterns
140+
- Topic deflection
141+
142+
#### A.L.I.C.E. (Integration)
143+
- 95,026 AIML patterns loaded
144+
- Pattern matching with priorities
145+
- SRAI, context tracking, wildcards
146+
147+
---
148+
149+
### Demo 03: BPE Tokenization
150+
151+
**File**: `demos/03-tokenization/test-tokenization.mjs`
125152
**Tests**: 141 comprehensive tests
126153
**Pass Rate**: 100%
127154

@@ -143,9 +170,9 @@ npm run test:comparison # Embeddings comparison tests
143170

144171
---
145172

146-
### Demo 03: Embeddings & Clustering
173+
### Demo 04: Embeddings & Clustering
147174

148-
**File**: `demos/03-embeddings/test-clustering.mjs`
175+
**File**: `demos/04-embeddings/test-clustering.mjs`
149176
**Tests**: 95 comprehensive tests
150177
**Pass Rate**: 100%
151178

@@ -173,9 +200,9 @@ npm run test:comparison # Embeddings comparison tests
173200

174201
---
175202

176-
### Demo 04: Attention Mechanisms
203+
### Demo 05: Attention Mechanisms
177204

178-
**File**: `demos/04-attention/test-attention.mjs`
205+
**File**: `demos/05-attention/test-attention.mjs`
179206
**Tests**: 70 comprehensive tests
180207
**Pass Rate**: 100%
181208

@@ -193,9 +220,9 @@ npm run test:comparison # Embeddings comparison tests
193220

194221
---
195222

196-
### Demo 05: Transformer Architecture
223+
### Demo 06: Transformer Architecture
197224

198-
**File**: `demos/05-transformer/test-transformer.mjs`
225+
**File**: `demos/06-transformer/test-transformer.mjs`
199226
**Tests**: 89 comprehensive tests
200227
**Pass Rate**: 100%
201228

@@ -210,9 +237,9 @@ npm run test:comparison # Embeddings comparison tests
210237

211238
---
212239

213-
### Demo 06: GPT Playground Sampling
240+
### Demo 07: GPT Playground Sampling
214241

215-
**File**: `demos/06-gpt-playground/test-sampling.mjs`
242+
**File**: `demos/07-gpt-playground/test-sampling.mjs`
216243
**Tests**: 114 comprehensive tests
217244
**Pass Rate**: 100%
218245

@@ -234,9 +261,9 @@ npm run test:comparison # Embeddings comparison tests
234261

235262
---
236263

237-
### Demo 07: RAG (Retrieval Augmented Generation)
264+
### Demo 08: RAG (Retrieval Augmented Generation)
238265

239-
**File**: `demos/07-rag/test-rag.mjs`
266+
**File**: `demos/08-rag/test-rag.mjs`
240267
**Tests**: 94 comprehensive tests
241268
**Pass Rate**: 97% (91/94, 3 tests hit Node.js memory limits)
242269

@@ -268,9 +295,9 @@ npm run test:comparison # Embeddings comparison tests
268295

269296
---
270297

271-
### Demo 08: Topic Modeling (LDA)
298+
### Demo 09: Topic Modeling (LDA)
272299

273-
**File**: `demos/08-topic-modeling/test-lda.mjs`
300+
**File**: `demos/09-topic-modeling/test-lda.mjs`
274301
**Tests**: 93 comprehensive tests
275302
**Pass Rate**: 100%
276303

@@ -291,9 +318,9 @@ npm run test:comparison # Embeddings comparison tests
291318

292319
---
293320

294-
### Demo 09: Sentiment Analysis
321+
### Demo 10: Sentiment Analysis
295322

296-
**File**: `demos/09-sentiment/test-sentiment.mjs`
323+
**File**: `demos/10-sentiment/test-sentiment.mjs`
297324
**Tests**: 97 comprehensive tests
298325
**Pass Rate**: 100%
299326

@@ -315,9 +342,9 @@ npm run test:comparison # Embeddings comparison tests
315342

316343
---
317344

318-
### Demo 10: POS Tagging
345+
### Demo 11: POS Tagging
319346

320-
**File**: `demos/10-pos-tagging/test-pos.mjs`
347+
**File**: `demos/11-pos-tagging/test-pos.mjs`
321348
**Tests**: 125 comprehensive tests
322349
**Pass Rate**: 100%
323350

@@ -347,9 +374,9 @@ npm run test:comparison # Embeddings comparison tests
347374

348375
---
349376

350-
### Demo 11: Word Analogies
377+
### Demo 12: Word Analogies
351378

352-
**File**: `demos/11-analogies/test-analogies.mjs`
379+
**File**: `demos/12-analogies/test-analogies.mjs`
353380
**Tests**: 119 comprehensive tests
354381
**Pass Rate**: 100%
355382

@@ -379,9 +406,9 @@ npm run test:comparison # Embeddings comparison tests
379406

380407
---
381408

382-
### Demo 12: BM25 Semantic Search
409+
### Demo 13: BM25 Semantic Search
383410

384-
**File**: `demos/12-semantic-search/test-bm25.mjs`
411+
**File**: `demos/13-semantic-search/test-bm25.mjs`
385412
**Tests**: 139 comprehensive tests
386413
**Pass Rate**: 100%
387414

@@ -421,9 +448,9 @@ npm run test:comparison # Embeddings comparison tests
421448

422449
---
423450

424-
### Demo 13: BERT Masked Language Modeling
451+
### Demo 14: BERT Masked Language Modeling
425452

426-
**File**: `demos/13-bert-mlm/test-bert.mjs`
453+
**File**: `demos/14-bert-mlm/test-bert.mjs`
427454
**Tests**: 88 comprehensive tests
428455
**Pass Rate**: 100%
429456

@@ -443,9 +470,9 @@ npm run test:comparison # Embeddings comparison tests
443470

444471
---
445472

446-
### Demo 14: Embeddings Comparison
473+
### Demo 15: Embeddings Comparison
447474

448-
**File**: `demos/14-embeddings-comparison/test-comparison.mjs`
475+
**File**: `demos/15-embeddings-comparison/test-comparison.mjs`
449476
**Tests**: 84 comprehensive tests
450477
**Pass Rate**: 100%
451478

@@ -461,33 +488,6 @@ npm run test:comparison # Embeddings comparison tests
461488

462489
---
463490

464-
### Demo 15: Chatbot Evolution
465-
466-
**Test Files**:
467-
- `demos/15-chatbot-evolution/test-eliza-fixes.mjs` (12 tests)
468-
- `demos/15-chatbot-evolution/test-parry-final.mjs` (14 tests)
469-
- `demos/15-chatbot-evolution/test-alice-full-node.mjs` (integration)
470-
471-
**Total**: 26+ tests
472-
**Pass Rate**: 100%
473-
474-
#### ELIZA Fixes (12 tests)
475-
- Classic conversation pattern matching
476-
- Sorry keyword priority
477-
- Response formatting
478-
479-
#### PARRY (14 tests)
480-
- Historical accuracy (1972 implementation)
481-
- Paranoid response patterns
482-
- Topic deflection
483-
484-
#### A.L.I.C.E. (Integration)
485-
- 95,026 AIML patterns loaded
486-
- Pattern matching with priorities
487-
- SRAI, context tracking, wildcards
488-
489-
---
490-
491491
## Test Categories
492492

493493
### Unit Tests

0 commit comments

Comments
 (0)