Daily Dose of Data Science

Daily Dose of Data Science

Share this post

Daily Dose of Data Science
Daily Dose of Data Science
5 Agentic AI Design Patterns
Copy link
Facebook
Email
Notes
More
User's avatar
Discover more from Daily Dose of Data Science
A free newsletter for continuous learning about data science and ML, lesser-known techniques, and how to apply them in 2 minutes. We keep things no-fluff. Join 100,000+ data scientists from top companies like Google, NVIDIA, Microsoft, Uber, etc.
Already have an account? Sign in

5 Agentic AI Design Patterns

...explained visually

Avi Chawla's avatar
Avi Chawla
Jan 23, 2025
45

Share this post

Daily Dose of Data Science
Daily Dose of Data Science
5 Agentic AI Design Patterns
Copy link
Facebook
Email
Notes
More
1
4
Share

Web scraping in pure English with Firecrawl Extract

With simple English prompts, you can now effortlessly extract clean, structured data from the web.

Firecrawl Extract does this as follows:

  • Provide the website URL and specify what you want to extract as a prompt.

  • FireCrawl Extract automatically generates the request parameters and a schema (all editable).

  • Click “Run” and get clean, structured data in seconds.

In the above image, I asked it to extract the authors of this newsletter, and it returned the correct output—Avi Chawla and Akshay Pachaar.

FireCrawl also generates code snippets to run the same job programmatically.

Start scrapping with FireCrawl

Thanks to FireCrawl for showing us their powerful scraping capabilities and partnering today!


5 Agentic AI Design Patterns

Agentic behaviors allow LLMs to refine their output by incorporating self-evaluation, planning, and collaboration!

The following visual depicts the 5 most popular design patterns employed in building AI agents.

Let's understand them below!

On a side note, we started a beginner-friendly crash course on RAGs recently with implementations, which covers:

  • ​​RAG fundamentals​​​​​

  • ​RAG evaluation​

  • ​​​​​RAG optimization​​​​​

  • ​Multimodal RAG​

  • ​​​​​Graph RAG​​

  • ​​Multivector retrieval using ColBERT​

  • ​​​​​RAG over complex real word docs ft. ColPali​


1) Reflection pattern

The AI reviews its work to spot mistakes and iterate until it produces the final response.

2) Tool use pattern

Tools allow LLMs to gather more information by:

  • Querying a vector database

  • Executing Python scripts

  • Invoking APIs, etc.

This is helpful since the LLM is not solely reliant on its internal knowledge.

3) ReAct (Reason and Act) pattern

ReAct combines the above two patterns:

  • The Agent can reflect on the generated outputs.

  • It can interact with the world using tools.

This makes it one of the most powerful patterns used today.

4) Planning pattern

Instead of solving a request in one go, the AI creates a roadmap by:

  • Subdividing tasks

  • Outlining objectives

This strategic thinking can solve tasks more effectively.

5) Multi-agent pattern

In this setup:

  • We have several agents.

  • Each Agent is assigned a dedicated role and task.

  • Each Agent can also access tools.

All agents work together to deliver the final outcome while delegating tasks to other agents if needed.


We'll soon dive deep into each of these patterns, showcasing real-world use cases and code implementations.

In the meantime, make sure you are fully equipped with everything we have covered so far like:

  • ​RAG fundamentals​

  • ​RAG evaluation​

  • ​RAG optimization​

  • ​Multimodal RAG​

  • ​Graph RAG​

  • ​Multivector retrieval using ColBERT​

  • ​RAG over complex real word docs ft. ColPali​

Thanks for reading Daily Dose of Data Science! Subscribe below and receive a free data science PDF (530+ pages) with 150+ core data science and machine learning lessons.


P.S. For those wanting to develop “Industry ML” expertise:

At the end of the day, all businesses care about impact. That’s it!

  • Can you reduce costs?

  • Drive revenue?

  • Can you scale ML models?

  • Predict trends before they happen?

We have discussed several other topics (with implementations) in the past that align with such topics.

Develop "Industry ML" Skills

Here are some of them:

  • Learn sophisticated graph architectures and how to train them on graph data: A Crash Course on Graph Neural Networks – Part 1.

  • So many real-world NLP systems rely on pairwise context scoring. Learn scalable approaches here: Bi-encoders and Cross-encoders for Sentence Pair Similarity Scoring – Part 1.

  • Learn techniques to run large models on small devices: Quantization: Optimize ML Models to Run Them on Tiny Hardware.

  • Learn how to generate prediction intervals or sets with strong statistical guarantees for increasing trust: Conformal Predictions: Build Confidence in Your ML Model’s Predictions.

  • Learn how to identify causal relationships and answer business questions: A Crash Course on Causality – Part 1

  • Learn how to scale ML model training: A Practical Guide to Scaling ML Model Training.

  • Learn techniques to reliably roll out new models in production: 5 Must-Know Ways to Test ML Models in Production (Implementation Included)

  • Learn how to build privacy-first ML systems: Federated Learning: A Critical Step Towards Privacy-Preserving Machine Learning.

  • Learn how to compress ML models and reduce costs: Model Compression: A Critical Step Towards Efficient Machine Learning.

All these resources will help you cultivate key skills that businesses and companies care about the most.


Subscribe to Daily Dose of Data Science

A free newsletter for continuous learning about data science and ML, lesser-known techniques, and how to apply them in 2 minutes. We keep things no-fluff. Join 100,000+ data scientists from top companies like Google, NVIDIA, Microsoft, Uber, etc.
Rajesh Boorugucharla's avatar
Burak ÖZDEN's avatar
Kevin Armengol's avatar
Balaji's avatar
redhoodcapital ☤'s avatar
45 Likes∙
4 Restacks
45

Share this post

Daily Dose of Data Science
Daily Dose of Data Science
5 Agentic AI Design Patterns
Copy link
Facebook
Email
Notes
More
1
4
Share

Discussion about this post

User's avatar
alex flow's avatar
alex flow
Feb 8

This is amazing, what tool did you use to make such nice charts?

Expand full comment
Like
Reply
Share
FREE Daily Dose of Data Science PDF
Collection of posts on core DS/ML topics.
Apr 20, 2023 • 
Avi Chawla
566

Share this post

Daily Dose of Data Science
Daily Dose of Data Science
FREE Daily Dose of Data Science PDF
Copy link
Facebook
Email
Notes
More
22
15 DS/ML Cheat Sheets
Single frame summaries of must-know DS/ML concepts and techniques.
Sep 22, 2024 • 
Avi Chawla
121

Share this post

Daily Dose of Data Science
Daily Dose of Data Science
15 DS/ML Cheat Sheets
Copy link
Facebook
Email
Notes
More
You Will NEVER Use Pandas’ Describe Method After Using These Two Libraries
Generate a comprehensive data summary in seconds.
Feb 6, 2024 • 
Avi Chawla
229

Share this post

Daily Dose of Data Science
Daily Dose of Data Science
You Will NEVER Use Pandas’ Describe Method After Using These Two Libraries
Copy link
Facebook
Email
Notes
More
14

Ready for more?

© 2025 Avi Chawla
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More

Create your profile

User's avatar

Only paid subscribers can comment on this post

Already a paid subscriber? Sign in

Check your email

For your security, we need to re-authenticate you.

Click the link we sent to , or click here to sign in.