评估节点#
评估节点执行与评估相关的各类操作,用于验证AI工作流的可靠性。
在以下场景中使用评估节点:
- 根据工作流是否处于评估状态来条件化执行逻辑
- 将评估结果回写至Google Sheets数据集
- 将评估性能的评分指标记录到n8n的评估标签页
Google Sheets凭证配置
评估节点的设置输出操作可将评估结果记录至数据表或Google Sheets。若需使用Google Sheets作为记录位置,请配置Google Sheets凭证。
操作功能#
评估节点提供以下操作:
可用参数和选项取决于所选操作。
设置输出#
设置输出操作包含以下参数:
- 数据源:选择评估结果的输出位置,默认值为数据表
根据数据源选择的不同,源设置会有所差异。
* When **Source** is **Data table**:
* **Data table:** Select a data table by name or ID
* When **Source** is **Google Sheets**:
* **Credential to connect with**: Create or select an existing [Google Sheets credentials](/integrations/builtin/credentials/google/index.md).
* **Document Containing Dataset**: Choose the spreadsheet document you want to write the evaluation results to. Usually this is the same document you select in the [Evaluation Trigger](/integrations/builtin/core-nodes/n8n-nodes-base.evaluationtrigger.md) node.
* Select **From list** to choose the spreadsheet title from the dropdown list, **By URL** to enter the url of the spreadsheet, or **By ID** to enter the `spreadsheetId`.
* You can find the `spreadsheetId` in a Google Sheets URL: `https://docs.google.com/spreadsheets/d/spreadsheetId/edit#gid=0`.
* **Sheet Containing Dataset**: Choose the sheet you want to write the evaluation results to. Usually this is the same sheet you select in the [Evaluation Trigger](/integrations/builtin/core-nodes/n8n-nodes-base.evaluationtrigger.md) node.
* Select **From list** to choose the sheet title from the dropdown list, **By URL** to enter the url of the sheet, **By ID** to enter the `sheetId`, or **By Name** to enter the sheet title.
* You can find the `sheetId` in a Google Sheets URL: `https://docs.google.com/spreadsheets/d/aBC-123_xYz/edit#gid=sheetId`.
您可以在输出部分定义要写入数据表或 Google 表格的条目。每个输出需设置以下参数:
- 名称:用于存储评估结果的 Google 表格列名
- 值:需写入 Google 表格的具体数值
设置指标#
设置指标操作包含需返回指标模块,用于定义评估过程中需要记录和追踪的指标。指标结果可在工作流的评估标签页中查看。
每个需记录的指标需配置以下详细信息:
- 名称:该指标使用的命名
- 值:需记录的数值。运行评估后,可将之前节点的数值拖拽至此。指标值必须为数值类型
检查评估状态#
检查评估状态操作无需配置参数。该操作提供分支输出连接器,可根据当前执行是否为评估来条件性执行逻辑。