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:
| Backend | Best for |
|---|---|
| Tavily | Global web search with AI summaries |
| Baidu | China-region search (CN-region deployments only) |
Prerequisites
Set the following environment variables:
| Variable | Description |
|---|---|
TURING_PROXY_BASE_URL | Base URL of the Turing Backend instance |
TURING_PROXY_API_KEY | API 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
| Argument | Description | Default |
|---|---|---|
query | Search query | required |
--backend | tavily or baidu | tavily |
--max-results N | [Tavily] Max results (1–20) | 5 |
--domains DOMAIN… | [Tavily] Restrict to domains | — |
--max-tokens N | [Tavily] Max tokens per page | 1024 |
--count N | [Baidu] Number of results | 5 |
--recency FILTER | [Baidu] week/month/semiyear/year | — |
--compact | Output compact JSON | — |
--check | Verify config + smoke test, then exit | — |
Notes
- Baidu Search returns
404on non-CN deployments; use Tavily for global deployments. max_resultsfor Tavily is server-capped at 20.
