forked from rohitg00/ai-engineering-from-scratch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquiz.json
More file actions
90 lines (90 loc) · 3.39 KB
/
Copy pathquiz.json
File metadata and controls
90 lines (90 loc) · 3.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"lesson": "28-orchestration-patterns",
"title": "Orchestration Patterns: Supervisor, Swarm, Hierarchical",
"questions": [
{
"stage": "pre",
"question": "Which four orchestration patterns does the lesson list?",
"options": [
"Supervisor-worker, swarm/peer-to-peer, hierarchical, debate",
"Sequential, parallel, distributed, federated",
"Plan, act, reflect, refine",
"Push, pull, batch, stream"
],
"correct": 0,
"explanation": "Supervisor-worker, swarm, hierarchical, and debate recur across 2026 frameworks."
},
{
"stage": "pre",
"question": "What is the 2026 LangChain recommendation regarding supervision?",
"options": [
"Always use create_supervisor",
"Prefer direct tool calls over create_supervisor for finer context-engineering control",
"Avoid supervision entirely",
"Run supervisors on GPUs"
],
"correct": 1,
"explanation": "Tool-call-based supervision gives you precise control over what each specialist sees."
},
{
"stage": "check",
"question": "What distinguishes a swarm from a supervisor-worker topology?",
"options": [
"Swarm uses GPUs",
"Swarm has no central router; agents hand off directly via a shared tool surface",
"Swarm is single-agent",
"Swarm runs on cron only"
],
"correct": 1,
"explanation": "Swarm is peer-to-peer; supervisor centralizes routing through one LLM."
},
{
"stage": "check",
"question": "When is hierarchical orchestration justified?",
"options": [
"Always; it scales for free",
"When a single supervisor's context budget cannot hold descriptions of all specialists",
"Only with GPUs",
"Never; it is an antipattern"
],
"correct": 1,
"explanation": "Nested supervisors are for large specialist populations that exceed one supervisor's budget."
},
{
"stage": "check",
"question": "What is the recommended decision order Anthropic supports?",
"options": [
"Always start with hierarchical multi-agent",
"Start with a single agent plus workflow patterns; add topology only when needed; supervisor before swarm before hierarchical; debate when accuracy beats cost",
"Start with debate",
"Start with swarm and contract toward single"
],
"correct": 1,
"explanation": "Anthropic's guidance is to build the right system for your needs, not the most sophisticated."
},
{
"stage": "post",
"question": "What is fake hierarchy in this lesson?",
"options": [
"Mislabelled YAML",
"Three layers of supervisors because 'enterprise' when there are only two actual teams; collapse it",
"An orchestrator written in TypeScript",
"A test fixture"
],
"correct": 1,
"explanation": "Layers that do not correspond to real teams add operational complexity without payoff."
},
{
"stage": "post",
"question": "How do you mitigate bouncing handoffs in a swarm (A -> B -> A -> B)?",
"options": [
"Pin the temperature to 0",
"Add a hop counter and refuse after N transfers",
"Disable tracing",
"Lower the rate limit"
],
"correct": 1,
"explanation": "A hop counter caps swarm cycles before they loop indefinitely."
}
]
}