Skip to content

Commit abe9188

Browse files
committed
Refinements for lesson 5: grounding presentation
1 parent c983218 commit abe9188

File tree

1 file changed

+35
-67
lines changed

1 file changed

+35
-67
lines changed

website/static/presentations/methodology/lesson-5-grounding.json

Lines changed: 35 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -200,21 +200,21 @@
200200
"left": {
201201
"label": "Autonomous",
202202
"content": [
203-
"Agent decides search strategy autonomously",
204-
"Simpler to build and maintain",
205-
"Works well for varied research tasks",
206-
"Example: Claude Code's Explore agent",
207-
"Degrades on very large codebases"
203+
"Autonomous search strategy",
204+
"Simpler to build",
205+
"Varied research tasks",
206+
"Example: Explore agent",
207+
"Degrades at scale"
208208
]
209209
},
210210
"right": {
211211
"label": "Structured",
212212
"content": [
213-
"Deterministic control plane defines algorithm",
214-
"LLM makes tactical decisions within structure",
215-
"Scales reliably to millions of LOC",
216-
"Example: ChunkHound's multi-hop pipeline",
217-
"Higher cost and complexity to build"
213+
"Deterministic control plane",
214+
"Tactical LLM decisions",
215+
"Scales better",
216+
"Example: ChunkHound",
217+
"Higher complexity and cost"
218218
]
219219
},
220220
"speakerNotes": {
@@ -262,64 +262,32 @@
262262
}
263263
},
264264
{
265-
"type": "codeExecution",
266-
"title": "Production Pattern: Multi-Source Grounding",
267-
"steps": [
268-
{
269-
"line": "Task: Implement OAuth2 client credentials flow for our API",
270-
"highlightType": "human",
271-
"annotation": "Engineer specifies implementation task"
272-
},
273-
{
274-
"line": "Step 1: Code research—How does existing auth work? (ChunkHound)",
275-
"highlightType": "execution",
276-
"annotation": "Ground in actual codebase patterns"
277-
},
278-
{
279-
"line": "Returns: Session-based auth architecture, middleware patterns, config locations (3.2K tokens)",
280-
"highlightType": "feedback",
281-
"annotation": "Concise synthesis of current system"
282-
},
283-
{
284-
"line": "Step 2: Web research—Current OAuth2 best practices and CVEs? (ArguSeek)",
285-
"highlightType": "execution",
286-
"annotation": "Ground in current ecosystem knowledge"
287-
},
288-
{
289-
"line": "Returns: RFC 6749 guidance, security considerations, recent vulnerabilities (4.8K tokens)",
290-
"highlightType": "feedback",
291-
"annotation": "Current standards and known issues"
292-
},
293-
{
294-
"line": "Step 3: Synthesize both sources for implementation",
295-
"highlightType": "prediction",
296-
"annotation": "Agent combines code and web grounding"
297-
},
298-
{
299-
"line": "Result: Follows existing architecture + uses 2025 security standards + avoids known CVEs + integrates cleanly",
300-
"highlightType": "summary",
301-
"annotation": "Solution fits your system using current standards"
302-
}
303-
],
304-
"speakerNotes": {
305-
"talkingPoints": "In production, you combine code grounding with web grounding. This example shows implementing OAuth2: first, code research discovers your existing auth architecture. Second, web research gets current best practices and security advisories. Third, the agent synthesizes both sources. This prevents two failure modes: code-only grounding risks outdated patterns, web-only grounding doesn't fit your architecture. Combining both gives you solutions that work for your specific system using current standards.",
306-
"timing": "4-5 minutes - this is the production payoff",
307-
"discussion": "Ask: What happens if you skip code grounding? What happens if you skip web grounding? Why do you need both?",
308-
"context": "This is the complete pattern for production. Ground in your codebase to prevent hallucinations and match your architecture. Ground in current web sources to get best practices and avoid outdated patterns. The combination delivers production-ready solutions.",
309-
"transition": "Let's wrap up with the key takeaways..."
310-
}
311-
},
312-
{
313-
"type": "visual",
314-
"title": "Grounding Architecture Comparison",
315-
"component": "GroundingComparison",
316-
"caption": "Sub-agents isolate research context from orchestrator",
265+
"type": "comparison",
266+
"title": "Context Management Without Sub-Agents",
267+
"left": {
268+
"label": "Ineffective Structure",
269+
"content": [
270+
"Task begins first",
271+
"Constraints buried middle",
272+
"Context floods fast",
273+
"Agent forgets requirements"
274+
]
275+
},
276+
"right": {
277+
"label": "Effective (U-Curve)",
278+
"content": [
279+
"Constraints come first",
280+
"Supporting context middle",
281+
"Task ends last",
282+
"Constraints stay visible"
283+
]
284+
},
317285
"speakerNotes": {
318-
"talkingPoints": "This visual shows the architectural difference between direct grounding and sub-agent grounding. On the left, search results flood the orchestrator context directly. On the right, sub-agents process extensive search in isolated contexts and return concise syntheses. The orchestrator maintains clean context throughout, keeping constraints at the beginning and tasks at the end where attention is strongest.",
319-
"timing": "2 minutes",
320-
"discussion": "Ask: Why does the orchestrator context stay clean with sub-agents? What's the trade-off?",
321-
"context": "This visual reinforces the architectural pattern that enables scale. Clean orchestrator context means first-iteration accuracy, even though you pay more tokens for the sub-agent processing.",
322-
"transition": "Let's summarize the key takeaways from this lesson..."
286+
"talkingPoints": "When you don't have sub-agents, you can still manage effectively by exploiting the U-shaped attention curve. Put critical constraints at the start where attention is strongest. Put supporting information in the middle where it's skimmable but available. Put your task or question at the end where attention is strong again. As agentic search loads results, they push middle content—which is fine because constraints stay at the top and your task stays fresh at the bottom. This pattern works reliably for small to medium codebases without requiring sub-agent infrastructure.",
287+
"timing": "3-4 minutes",
288+
"discussion": "Ask: Why does putting the task at the end work better than at the beginning? What happens to middle content as search results load?",
289+
"context": "This is the practical pattern for engineers working with basic agentic search or tools without sub-agent support. It's referenced in the lesson but often overlooked—yet it's critical for most real-world usage where you don't have ChunkHound or Explore agents.",
290+
"transition": "This pattern works for small to medium codebases. Now let's see the complete architectural picture..."
323291
}
324292
},
325293
{

0 commit comments

Comments
 (0)