What You’ll Learn
| Concept | Description |
|---|---|
| Web Search | Using Parallel’s AI-optimized search API |
| Content Extraction | Extracting clean content from any URL |
| Source Evaluation | Assessing credibility of sources |
| Multi-Source Synthesis | Combining findings with citations |
Prerequisites
- Python 3.12+
- OpenAI API key
- Parallel API key (for web search)
Setup
1
Clone the repository
2
Create and activate virtual environment
3
Install dependencies
4
Set environment variables
Run the Agent
Quick Research
Fast overview with 3-5 sources:- Using the
research_topichelper function - Quick depth for fast results
- Accessing structured report fields
Deep Research
Comprehensive investigation with 10-15 sources:- Comprehensive research depth
- Multiple search iterations
- Source credibility evaluation
Comparative Research
Compare multiple topics or technologies:Agent Configuration
| Parameter | Purpose |
|---|---|
model | GPT-5.2 for research synthesis |
output_schema | Structured report with findings and sources |
ParallelTools | AI-optimized web search and extraction |
max_results | Maximum sources per search (varies by depth) |
enable_extract | Extract full content from URLs |
ReasoningTools | Plan research approach before searching |
How It Works
Research Workflow
Research Depth
| Depth | Sources | Use Case |
|---|---|---|
quick | 3-5 | Fast overview, simple questions |
standard | 5-10 | Balanced research, most questions |
comprehensive | 10-15 | Thorough investigation, complex topics |
Source Credibility
| Rating | Source Types |
|---|---|
| High | Official docs, academic papers, established publications |
| Medium | Well-known blogs, industry sites, verified experts |
| Low | Personal blogs, forums, unverified sources |
Troubleshooting
PARALLEL_API_KEY not set
PARALLEL_API_KEY not set
Limited results for niche topics
Limited results for niche topics
For specialized topics, the agent will report limited sources in the
gaps field and suggest alternative search approaches.Contradictory findings
Contradictory findings
When sources disagree, the agent notes the contradiction, includes confidence level for each claim, and cites sources for both perspectives.