Five pipeline and batch functions this week. What was the shift from running one agent to running many?
Realising the agent is reusable. Create it once outside the loop; call it many times inside. It's not a one-shot object.
The agent is stateless per call. The system prompt is fixed; the user prompt varies. That's the object-reuse pattern that makes batch processing efficient.
And the min(key=len) — I keep forgetting it's O(n), not O(n log n). That matters at batch scale.
Consistent reflexes. Six questions — four from this week, two reviewing Weeks 1–2.
Ready.
Parallel personas, pipeline dicts, batch comprehensions, and word count audits — the production patterns for research pipelines are all here.
Create a free account to get started. Paid plans unlock all tracks.
Five pipeline and batch functions this week. What was the shift from running one agent to running many?
Realising the agent is reusable. Create it once outside the loop; call it many times inside. It's not a one-shot object.
The agent is stateless per call. The system prompt is fixed; the user prompt varies. That's the object-reuse pattern that makes batch processing efficient.
And the min(key=len) — I keep forgetting it's O(n), not O(n log n). That matters at batch scale.
Consistent reflexes. Six questions — four from this week, two reviewing Weeks 1–2.
Ready.
Parallel personas, pipeline dicts, batch comprehensions, and word count audits — the production patterns for research pipelines are all here.