Give your local AI web search with Brave
The video shows how to let a model running on your Mac look up fresh information and cite the pages it used. The Blender example compares the same model with and without a search tool. The second example searches for public guidance and checks fictional invoices locally.
Video scheduled for 26 Nov 2026, 11:00 (London time).
Give your local AI web search with Brave
Thanks to Brave for sponsoring this video.
Get a Brave Search API key: https://brave.com/search/api/?mtm_campaign=ai-luke
Set up the model
Download the companion ZIP containing brave_local_ai.py and README.txt. Install Python 3 and Ollama, start Ollama and open a terminal in the extracted folder.
- ollama pull qwen3:4b
- python3 brave_local_ai.py --doctor
Try the search on its own
Create a Brave Search API key with access to LLM Context. The script can prompt for it with terminal echo disabled.
- python3 brave_local_ai.py --mode check --question "site:blender.org/download/ Blender latest stable release"
Compare the same question with and without search
Read the cited page and check that the release date and version support the answer. Results change over time. The companion sends the search query to Brave and passes the result passages to Ollama on your machine. Keep private information out of the queries you send to a search provider.
Brave Search API documentation: https://api-dashboard.search.brave.com/documentation
Ollama downloads: https://ollama.com/download
- python3 brave_local_ai.py --mode offline --question "What is the latest stable Blender release? Include the official download page."
- python3 brave_local_ai.py --mode ask --question "What is the latest stable Blender release? Include the official download page."
What stayed local
The fictional invoice register stayed on the Mac. Only the public search query went to Brave. Check the cited page and the invoice rows separately before relying on the result.
The takeaway
The fictional invoice register stayed on the Mac. Only the public search query went to Brave. Check the cited page and the invoice rows separately before relying on the result.
About this article and its sources
Search results and model answers can change. The examples come from the approved video and the recorded test.
