Try out the full deep research chat here.
For this workshop, you’ll need:
- Cerebras API: the fastest inference provider, get started for free here
- Exa API: The search engine for AI, get started for free here
Step 1: Environment Setup
First, let’s install all the necessary libraries, import everything we need, and configure our API credentials.Step 2: Web Search Function
Our first core function handles web searching using Exa’s auto search. This is advantageous because it uses a blend of keyword and neural search to find both exact matches and semantic similarities. It also returns the content of each scraped URL.Step 3: AI Analysis Function
This function leverages Cerebras fast inference to analyze content and generate insights. We’ll use it both for structured JSON responses and regular text analysis throughout our research process.Step 4: Research Function
Now we’ll build our research methodology. The first part of the below cell performs the initial search and gathers our first batch of sources, just like when you first query Perplexity. Then, the AI is queried to generate a conclusion based on the source data.Step 5: Add Research Depth
Now let’s make our research intelligent instead of just searching once and hoping for the best. Here’s the problem with basic search: You ask “What are the latest AI breakthroughs?” and get random articles. But what if those articles all focus on ChatGPT and miss robotics? You’d never know what you’re missing. Here is a more advanced research flow.(Optional) Step 6: Anthropic Multi-Agent Research
What makes Anthropic’s approach special? It uses intelligent orchestration with specialized agents working in parallel. Usually, one AI does everything sequentially- Search → analyze → search → analyze (slow, limited)
- Lead agent breaks down “AI safety research” into:
- Subagent 1: Current AI safety techniques
- Subagent 2: Recent regulatory developments
- Subagent 3: Industry implementation challenges
- All agents work simultaneously = 3x faster, better coverage

