Skip to main content
ParallelBackend speaks directly to Parallel’s web API via the parallel-web SDK (>= 1.0). Two tools: web_search(objective) returns URL + excerpt pairs for a natural-language objective; web_extract(url) fetches full-page content.
web_parallel.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your API keys

4

Run the example

Save the code above as web_parallel.py, then run:
Full source: cookbook/12_context/03_web_parallel.py