Skip to content
generic-web-search logo

Generic Web Search

generic-web-search

Generic Web Search — Search the web through a self-hosted Turing Backend proxy. Supports Tavily AI Search (global) and Baidu Search (China region). Single or batch queries, domain filtering, recency filtering, and structured results with titles, URLs, content snippets, and relevance scores.

SKILL.md

Full skill instructions

Generic Web Search

Search the web through a self-hosted Turing Backend proxy. Supports two backends:

BackendBest for
TavilyGlobal web search with AI summaries
BaiduChina-region search (CN-region deployments only)

Prerequisites

Set the following environment variables:

VariableDescription
TURING_PROXY_BASE_URLBase URL of the Turing Backend instance
TURING_PROXY_API_KEYAPI key for authenticating with the Turing Backend
export TURING_PROXY_BASE_URL="https://your-turing-backend-host"
export TURING_PROXY_API_KEY="your-turing-api-key"

Verify configuration:

python scripts.py --check

Usage

# Tavily (global, default)
python scripts.py "latest AI news"
python scripts.py "latest AI news" --max-results 10
python scripts.py "latest AI news" --domains arxiv.org github.com

# Baidu (CN region)
python scripts.py "人工智能最新进展" --backend baidu --count 5 --recency month

Arguments

ArgumentDescriptionDefault
querySearch queryrequired
--backendtavily or baidutavily
--max-results N[Tavily] Max results (1–20)5
--domains DOMAIN…[Tavily] Restrict to domains—
--max-tokens N[Tavily] Max tokens per page1024
--count N[Baidu] Number of results5
--recency FILTER[Baidu] week/month/semiyear/year—
--compactOutput compact JSON—
--checkVerify config + smoke test, then exit—

Notes

  • Baidu Search returns 404 on non-CN deployments; use Tavily for global deployments.
  • max_results for Tavily is server-capped at 20.