parallel-web-search

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Web Search

网络搜索

Search the web for: $ARGUMENTS
为以下内容搜索网络:$ARGUMENTS

Command

命令

Choose a short, descriptive filename based on the query (e.g.,
ai-chip-news
,
react-vs-vue
). Use lowercase with hyphens, no spaces.
bash
parallel-cli search "$ARGUMENTS" -q "<keyword1>" -q "<keyword2>" --json --max-results 10 --excerpt-max-chars-total 27000 -o "$FILENAME.json"
The first argument is the objective — a natural language description of what you're looking for. It replaces multiple keyword searches with a single call for broad or complex queries. Add
-q
flags for specific keyword queries to supplement the objective. The
-o
flag saves the full results to a JSON file for follow-up questions.
Options if needed:
  • --after-date YYYY-MM-DD
    for time-sensitive queries
  • --include-domains domain1.com,domain2.com
    to limit to specific sources
根据查询内容选择一个简短且具有描述性的文件名(例如
ai-chip-news
react-vs-vue
)。使用小写字母和连字符,不要有空格。
bash
parallel-cli search "$ARGUMENTS" -q "<keyword1>" -q "<keyword2>" --json --max-results 10 --excerpt-max-chars-total 27000 -o "$FILENAME.json"
第一个参数是目标——用自然语言描述你要查找的内容。对于宽泛或复杂的查询,它可以替代多个关键词搜索,只需一次调用即可。添加
-q
标志来补充特定的关键词查询。
-o
标志会将完整结果保存到JSON文件中,以便后续查询使用。
必要时可使用以下选项:
  • --after-date YYYY-MM-DD
    用于对时间敏感的查询
  • --include-domains domain1.com,domain2.com
    限制搜索特定来源

Parsing results

解析结果

The command outputs JSON to stdout. For each result, extract:
  • title, url, publish_date
  • Useful content from excerpts (skip navigation noise like menus, footers, "Skip to content")
该命令会将JSON输出到标准输出。对于每个结果,提取以下信息:
  • 标题、网址、发布日期
  • 摘录中的有用内容(跳过导航类冗余信息,如菜单、页脚、“跳转到内容”等)

Response format

响应格式

CRITICAL: Every claim must have an inline citation. Use markdown links like Title pulling only from the JSON output. Never invent or guess URLs.
Synthesize a response that:
  • Leads with the key answer/finding
  • Includes specific facts, names, numbers, dates
  • Cites every fact inline as Source Title — do not leave any claim uncited
  • Organizes by theme if multiple topics
End with a Sources section listing every URL referenced:
Sources:
- [Source Title](https://example.com/article) (Feb 2026)
- [Another Source](https://example.com/other) (Jan 2026)
This Sources section is mandatory. Do not omit it.
After the Sources section, mention the output file path (
$FILENAME.json
) so the user knows it's available for follow-up questions.
重要提示:所有主张必须带有内联引用。 使用从JSON输出中获取的markdown链接格式,如标题。切勿编造或猜测网址。
整理响应内容时需:
  • 以核心答案/发现开头
  • 包含具体事实、名称、数字、日期
  • 每个事实都以内联引用来源标题标注——不得有任何未标注的主张
  • 若涉及多个主题,按主题分类整理
必须附上来源部分,列出所有引用的网址:
来源:
- [来源标题](https://example.com/article) (2026年2月)
- [另一来源](https://example.com/other) (2026年1月)
此来源部分为必填项,不得省略。
在来源部分之后,提及输出文件路径(
$FILENAME.json
),让用户知晓该文件可用于后续查询。

Setup

安装配置

If
parallel-cli
is not found, install and authenticate:
bash
curl -fsSL https://parallel.ai/install.sh | bash
If unable to install that way, install via pipx instead:
bash
pipx install "parallel-web-tools[cli]"
pipx ensurepath
Then authenticate:
bash
parallel-cli login
Or set an API key:
export PARALLEL_API_KEY="your-key"
若未找到
parallel-cli
,请进行安装并验证身份:
bash
curl -fsSL https://parallel.ai/install.sh | bash
若无法通过上述方式安装,可改用pipx安装:
bash
pipx install "parallel-web-tools[cli]"
pipx ensurepath
然后验证身份:
bash
parallel-cli login
或设置API密钥:
export PARALLEL_API_KEY="your-key"