Loading...
Loading...
Compare original and translation side by side
export BRAVE_API_KEY="your-api-key"export BRAVE_API_KEY="your-api-key"digraph parallel_search {
rankdir=LR;
node [shape=box];
task [label="Research task"];
q1 [label="Query 1"];
q2 [label="Query 2"];
q3 [label="Query 3"];
subagent [label="Subagent\n(preserves context)"];
synthesize [label="Synthesized\nfindings"];
task -> q1;
task -> q2;
task -> q3;
q1 -> subagent [style=dashed];
q2 -> subagent [style=dashed];
q3 -> subagent [style=dashed];
subagent -> synthesize;
}digraph parallel_search {
rankdir=LR;
node [shape=box];
task [label="Research task"];
q1 [label="Query 1"];
q2 [label="Query 2"];
q3 [label="Query 3"];
subagent [label="Subagent\n(preserves context)"];
synthesize [label="Synthesized\nfindings"];
task -> q1;
task -> q2;
task -> q3;
q1 -> subagent [style=dashed];
q2 -> subagent [style=dashed];
q3 -> subagent [style=dashed];
subagent -> synthesize;
}| Task | Command |
|---|---|
| Web search | |
| Image search | |
| News search | |
| AI answer | |
| Suggestions | |
| Check key | |
| 任务 | 命令 |
|---|---|
| 网页搜索 | |
| 图片搜索 | |
| 新闻搜索 | |
| AI答案 | |
| 建议 | |
| 检查密钥 | |
| API | Endpoint | Plan |
|---|---|---|
| Web Search | | Free |
| Image Search | | Free |
| News Search | | Free |
| Suggest | | Free |
| AI Grounding | | AI Grounding |
| Local POI | | Pro |
| Summarizer | | Pro |
| API | 端点 | 计划 |
|---|---|---|
| 网页搜索 | | 免费 |
| 图片搜索 | | 免费 |
| 新闻搜索 | | 免费 |
| 建议 | | 免费 |
| AI Grounding | | AI Grounding |
| 本地POI | | 专业版 |
| 摘要工具 | | 专业版 |
undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefineddigraph brave_search {
rankdir=TB;
node [shape=box];
need [label="What do you need?" shape=diamond];
web [label="Web Search\nbrave.py web"];
images [label="Image Search\nbrave.py images"];
news [label="News Search\nbrave.py news"];
ai [label="AI Answer\nbrave.py ai"];
results [label="Parse JSON results"];
cite [label="Include citations\nfor AI answers"];
need -> web [label="web pages"];
need -> images [label="images"];
need -> news [label="recent news"];
need -> ai [label="cited answer"];
web -> results;
images -> results;
news -> results;
ai -> cite;
}digraph brave_search {
rankdir=TB;
node [shape=box];
need [label="What do you need?" shape=diamond];
web [label="Web Search\nbrave.py web"];
images [label="Image Search\nbrave.py images"];
news [label="News Search\nbrave.py news"];
ai [label="AI Answer\nbrave.py ai"];
results [label="Parse JSON results"];
cite [label="Include citations\nfor AI answers"];
need -> web [label="web pages"];
need -> images [label="images"];
need -> news [label="recent news"];
need -> ai [label="cited answer"];
web -> results;
images -> results;
news -> results;
ai -> cite;
}{
"web": {
"results": [
{
"title": "Page Title",
"url": "https://example.com",
"description": "Snippet from the page...",
"extra_snippets": ["Additional context..."]
}
]
},
"query": {
"original": "search query",
"altered": "modified query if spellchecked"
}
}{
"web": {
"results": [
{
"title": "Page Title",
"url": "https://example.com",
"description": "Snippet from the page...",
"extra_snippets": ["Additional context..."]
}
]
},
"query": {
"original": "search query",
"altered": "modified query if spellchecked"
}
}The tallest building is the Burj Khalifa[1] at 828 meters...
[1] https://source-url.comThe tallest building is the Burj Khalifa[1] at 828 meters...
[1] https://source-url.com| Option | Values | Description |
|---|---|---|
| 1-20 (web), 1-200 (images) | Number of results |
| US, GB, DE, FR, etc. | Search region |
| en, de, fr, es, etc. | Search language |
| off, moderate, strict | Adult content filter |
| pd, pw, pm, py | Time filter |
| flag | Output raw JSON |
| 选项 | 取值 | 描述 |
|---|---|---|
| 1-20(网页),1-200(图片) | 结果数量 |
| US, GB, DE, FR等 | 搜索区域 |
| en, de, fr, es等 | 搜索语言 |
| off, moderate, strict | 成人内容过滤 |
| pd, pw, pm, py | 时间过滤 |
| 标志位 | 输出原始JSON |
| Error | Cause | Fix |
|---|---|---|
| 401 Unauthorized | Invalid/missing API key | Check |
| 429 Rate Limited | Too many requests | Wait or upgrade plan |
| 422 Validation | Invalid parameters | Check parameter values |
| 错误 | 原因 | 修复方案 |
|---|---|---|
| 401 Unauthorized | API密钥无效/缺失 | 检查 |
| 429 Rate Limited | 请求过多 | 等待或升级计划 |
| 422 Validation | 参数无效 | 检查参数取值 |
X-RateLimit-RemainingX-RateLimit-Remaining| Mistake | Fix |
|---|---|
| API key not set | |
| Wrong endpoint for plan | Check subscription at dashboard |
| Too many results | Web max is 20, use offset for pagination |
| No AI grounding | Requires AI Grounding subscription |
| 错误 | 修复方案 |
|---|---|
| 未设置API密钥 | |
| 计划不支持的端点 | 在控制台检查订阅情况 |
| 结果数量过多 | 网页搜索最多20条,使用offset进行分页 |
| 无AI Grounding功能 | 需要订阅AI Grounding服务 |