Skip to main content
WebContextProvider wraps a ContextBackend so the provider interface doesn’t know about the search/fetch implementation. Here we use ExaBackend (Exa’s search + contents API).
web_exa.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_exa.py, then run:
Full source: cookbook/12_context/01_web_exa.py