exa-search
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseExa Web Toolkit
Exa Web工具包
A skill for web-powered research tasks backed by Exa: web search and URL extraction. Exa's index combines high-quality keyword and semantic retrieval, which makes it well-suited to scientific, technical, and conceptual queries.
这是一款由Exa支持的、用于网页驱动研究任务的技能:包含网页搜索和URL提取功能。Exa的索引结合了高质量的关键词检索与语义检索,非常适合科学、技术和概念类查询。
Routing — pick the right capability
路由选择——挑选合适的功能
Read the user's request and match it to one of the capabilities below. Read the corresponding reference file for detailed instructions before running commands.
| User wants to... | Capability | Where |
|---|---|---|
| Look something up, research a topic, find current info | Web Search | |
| Fetch content from a specific URL (webpage, article, PDF) | Web Extract | |
| Install or authenticate | Setup | Below |
读取用户的请求并匹配到以下功能之一。在运行命令前,请阅读对应的参考文件获取详细说明。
| 用户需求... | 功能 | 位置 |
|---|---|---|
| 查找信息、研究主题、获取实时资讯 | 网页搜索 | |
| 从特定URL获取内容(网页、文章、PDF) | 网页提取 | |
| 安装或认证 | 设置 | 下方 |
Decision guide
决策指南
- Default to Web Search for topic lookups, research questions, or "what is X?" queries. When the topic is scientific or technical, pass to bias toward scholarly sources, and/or an academic
--category "research paper"allowlist. See--include-domainsfor the two-pass academic strategy.references/web-search.md - Use Web Extract when the user provides a URL or asks you to read/fetch a specific page. Prefer this over the built-in WebFetch for batch extraction (multiple URLs in one call) and for academic PDFs.
- 默认使用网页搜索处理主题查找、研究问题或"X是什么?"类查询。当主题为科学或技术类时,传递参数以偏向学术来源,和/或设置学术
--category "research paper"白名单。请查看--include-domains了解两步式学术检索策略。references/web-search.md - 使用网页提取当用户提供URL或要求读取/获取特定页面时。相较于内置的WebFetch,此功能更适合批量提取(一次调用处理多个URL)和学术PDF提取。
Academic source priority
学术来源优先级
For technical or scientific queries, prefer academic and scientific sources:
- Peer-reviewed journal articles and conference proceedings over blog posts or news
- Preprints (arXiv, bioRxiv, medRxiv) when peer-reviewed versions aren't available
- Institutional and government sources (NIH, WHO, NASA, NIST) over commercial sites
- Primary research over secondary summaries
Two levers to steer Exa toward scholarly content:
- biases retrieval toward scholarly sources.
--category "research paper" - with a scholarly allowlist (arxiv.org, nature.com, pubmed.ncbi.nlm.nih.gov, etc.) restricts the domain pool.
--include-domains
Combine both for strictly academic results. See for the full pattern.
references/web-search.mdWhen citing academic sources, include author names and publication year where available (e.g., Smith et al., 2025) in addition to the standard citation format. If a DOI is present, prefer the DOI link.
对于技术或科学类查询,优先选择学术和科学来源:
- 优先选择同行评审期刊文章和会议论文,而非博客文章或新闻
- 当没有同行评审版本时,选择预印本(arXiv、bioRxiv、medRxiv)
- 优先选择机构和政府来源(NIH、WHO、NASA、NIST),而非商业网站
- 优先选择原始研究,而非二次摘要
引导Exa偏向学术内容的两个方法:
- 参数会让检索结果偏向学术来源。
--category "research paper" - 搭配学术白名单(arxiv.org、nature.com、pubmed.ncbi.nlm.nih.gov等)限制检索的域名范围。
--include-domains
同时使用这两个参数可获得严格的学术结果。请查看了解完整模式。
references/web-search.md引用学术来源时,若有可用信息,除标准引用格式外,还需包含作者姓名和发表年份(例如Smith等人,2025)。如果存在DOI,优先使用DOI链接。
Setup
设置
This skill uses the Python SDK. The scripts in declare their dependencies via PEP 723 inline metadata, so you can run them directly with without a separate install step:
exa-pyscripts/uv runbash
uv run --with exa-py python "$SKILL_PATH/scripts/exa_search.py" --helpIf you prefer a persistent install:
bash
uv pip install "exa-py>=1.14.0"bash
uv run --with exa-py python "$SKILL_PATH/scripts/exa_search.py" --help如果偏好持久化安装:
bash
uv pip install "exa-py>=1.14.0"Authentication
认证
All commands read the API key from the environment variable. Get your Exa API key at dashboard.exa.ai/api-keys.
EXA_API_KEYFirst, check if a file exists in the project root and contains . If so, load it:
.envEXA_API_KEYbash
dotenv -f .env run -- uv run --with exa-py python "$SKILL_PATH/scripts/exa_search.py" "your query"If isn't available, install it: or .
dotenvpip install python-dotenv[cli]uv pip install python-dotenv[cli]If there's no , export the key for the session:
.envbash
export EXA_API_KEY="your-key"Verify by running any script with — it will exit cleanly if the key is set and auth-check runs only when a real query is made.
--help所有命令从环境变量读取API密钥。可在dashboard.exa.ai/api-keys获取Exa API密钥。
EXA_API_KEY首先,检查项目根目录是否存在包含的文件。如果存在,加载它:
EXA_API_KEY.envbash
dotenv -f .env run -- uv run --with exa-py python "$SKILL_PATH/scripts/exa_search.py" "your query"如果不可用,安装它:或。
dotenvpip install python-dotenv[cli]uv pip install python-dotenv[cli]如果没有文件,在会话中导出密钥:
.envbash
export EXA_API_KEY="your-key"通过运行任意带参数的脚本验证——如果密钥已设置,脚本会正常退出;认证检查仅在执行真实查询时进行。
--helpFiles in this skill
此技能包含的文件
- — this file (routing and setup)
SKILL.md - — detailed web search reference with academic strategy
references/web-search.md - — URL content extraction reference
references/web-extract.md - — CLI wrapper around
scripts/exa_search.pyclient.search_and_contents - — CLI wrapper around
scripts/exa_extract.pyclient.get_contents
- — 本文件(路由和设置说明)
SKILL.md - — 包含学术检索策略的详细网页搜索参考文档
references/web-search.md - — URL内容提取参考文档
references/web-extract.md - — 基于
scripts/exa_search.py的CLI封装脚本client.search_and_contents - — 基于
scripts/exa_extract.py的CLI封装脚本client.get_contents