介绍
# Exa - Neural Web Search
直接访问 Exa 神经搜索引擎的 API。
## 设置
**1. 获取你的 API Key:** 从 [Exa Dashboard](https://dashboard.exa.ai/api-keys) 获取一个密钥。
**2. 将其设置在你的环境中:** ```bash export EXA_API_KEY="your-key-here" ```
## 使用方法
### 网络搜索 ```bash bash scripts/search.sh "query" [num_results] [type] ``` * `type`: auto (默认), neural, fast, deep * `category`: company, research-paper, news, github, tweet, personal-site, pdf
### 代码上下文 查找相关的代码片段和文档。 ```bash bash scripts/code.sh "query" [num_results] ```
### 获取内容 从 URL 提取全文。 ```bash bash scripts/content.sh "url1" "url2" ```