> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fetchhive.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Exa Similar

> 配置一个查找与源 URL 相似的页面并存储结果供后续步骤使用的工作流步骤

# Exa Similar

当你希望工作流步骤从已知 URL 开始,并在 Fetch Hive 中查找相似页面时,请使用 **Exa Similar**。

## 配置

| 选项                                            | 是否必填 | 说明                                                                         |
| --------------------------------------------- | ---- | -------------------------------------------------------------------------- |
| Name                                          | 否    | 步骤在工作流画布中的标签。                                                              |
| URL                                           | 是    | **URL** 中的源 URL。此字段通过 **Insert Variable** 支持工作流变量。                         |
| Number of Results                             | 否    | **Number of results** 中的结果数量。                                              |
| Domain Filter Mode                            | 否    | **Domain Filter** 应包含还是排除列出的域。                                             |
| Domain Filter                                 | 否    | **Domain Filter** 中以逗号分隔的域。此字段通过 **Insert Variable** 支持工作流变量。              |
| Include Phrase                                | 否    | **Include phrase** 中的短语。此字段通过 **Insert Variable** 支持工作流变量。                 |
| Exclude Phrase                                | 否    | **Exclude phrase** 中的短语。此字段通过 **Insert Variable** 支持工作流变量。                 |
| Text                                          | 否    | 控制每个结果是否包含结果文本。                                                            |
| Max Characters                                | 否    | 启用 **Text** 时每个结果的最大字符数。                                                   |
| Summary                                       | 否    | 控制是否返回结果摘要。                                                                |
| Summary Query                                 | 否    | 启用 **Summary** 时使用的可选 **Summary query**。此字段通过 **Insert Variable** 支持工作流变量。 |
| Charge Type                                   | 否    | 在 **Charge type** 中选择的值。可用值为 **Hosted** 和 **Personal**。                    |
| When the step fails                           | 否    | 控制此步骤失败时工作流应 **Terminate Workflow** 还是 **Continue**。                       |
| 从 **Search steps...** 的 **Research** 分组添加此步骤。 |      |                                                                            |

此步骤以源 URL 而不是搜索短语开始。你仍可以使用 **Domain Filter**、**Include phrase** 和 **Exclude phrase** 缩小结果集,然后可选地开启 **Text** 和 **Summary**。

## 输出

点击步骤标题中的 **Run** 来测试步骤。运行完成后,Fetch Hive 会在 **Output** 中显示相似页面结果输出。

在后续步骤中使用变量选择器插入该次运行可用的确切输出路径。基础引用为:

```text theme={null}
{{STEP_IDENTIFIER.output}}
```

如果你想要完整的结果集,直接引用基础输出:

```text theme={null}
{{step_2.output}}
```

具体形状取决于你启用了哪些选项。在测试运行后使用变量选择器检查返回的字段。

## 示例

从 **Search steps...** 的 **Research** 分组中添加 **Exa Similar**。

将 **Name** 设置为类似 `Find similar vendor pages` 的内容。

将源页面粘贴到 **URL** 中。如果 URL 来自早前步骤,点击 **Insert Variable** 并添加该引用。

选择 **Number of results**,然后如果想收紧匹配,添加 **Include phrase** 或 **Exclude phrase**。

如果想限制结果可以来自哪里,在 **Domain Filter** 中添加域,并选择 **Include** 或 **Exclude**。

如果你想要每个结果的内容,启用 **Text**;如果你想要每个结果的摘要,启用 **Summary**。

选择 **Charge type**,点击 **Run**,并在 **Output** 中查看返回的相似页面。

{/* Add screenshot: Exa Similar settings sheet with text and summary enabled */}

## 备注

* 当你已经有一个代表性的 URL 并希望查找相关页面时,使用 **Exa Similar**。当你希望从搜索查询开始时,使用 **Exa Search**。
* 根据当前的编辑器指南,**Include phrase** 和 **Exclude phrase** 各自支持最多五个单词的单个短语。
* **Summary query** 是可选的。如果留空,Fetch Hive 会使用步骤现有的输入上下文。

另见:[Exa Search](./exa-search)、[创建和编辑](../../creating-and-editing) 和 [测试与迭代](../../testing-and-iteration)
