Web Search

Web search routing, configuration, and usage within Bohr AI.

Bohr AI’s web search tool retrieves current information from the web during research workflows. It supports multiple simultaneous queries, domain filtering, recency filtering, and optional full-page content retrieval. The researcher agent uses web search alongside AlphaXiv to gather evidence from non-academic sources like blog posts, documentation, news, and code repositories.

Routing modes

Bohr AI supports three web search backends. You can configure which one to use or let Bohr AI choose automatically:

ModeDescription
autoPrefer Perplexity when configured, fall back to Gemini
perplexityForce Perplexity Sonar for all web searches
geminiForce Gemini grounding (default, zero-config)

Default behavior

The default path is zero-config Gemini grounding via a signed-in Chromium profile. No API keys are required. This works on macOS and Linux where a Chromium-based browser is installed and signed in to a Google account.

For headless environments, CI pipelines, or servers without a browser, configure an explicit API key for either Perplexity or Gemini in ~/.bohr/web-search.json.

Configuration

Check the current search configuration:

bohr search status

Edit ~/.bohr/web-search.json to configure the backend:

{
  "route": "auto",
  "perplexityApiKey": "pplx-...",
  "geminiApiKey": "AIza..."
}

Set route to auto, perplexity, or gemini. When using auto, Bohr AI prefers Perplexity if a key is present, then falls back to Gemini.

Search features

The web search tool supports several capabilities that the researcher agent leverages automatically:

  • Multiple queries — Send 2-4 varied-angle queries simultaneously for broader coverage of a topic
  • Domain filtering — Restrict results to specific domains like arxiv.org, github.com, or nature.com
  • Recency filtering — Filter results by date, useful for fast-moving topics where only recent work matters
  • Full content retrieval — Fetch complete page content for the most important results rather than relying on snippets

When it runs

Web search is used automatically by researcher agents during workflows. You do not need to invoke it directly. The researcher decides when to use web search versus paper search based on the topic and source availability. Academic topics lean toward AlphaXiv; engineering and applied topics lean toward web search.