agents
latest
false
- 入门指南
- Studio Web 中的 UiPath 智能体
- UiPath 编码智能体
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。

智能体用户指南
上次更新日期 2025年11月26日
上下文
在智能体中使用索引
索引使智能体可以访问经过许可的知识库。这有助于智能体使用业务专属数据进行推理。有关有效利用上下文的指导,请参阅“上下文工程最佳实践”。
要为您的智能体添加上下文,请在上下文部分执行以下步骤:
- 选择添加上下文。
- 从可用列表中选择一个索引,或选择新建,在 Orchestrator 中新建索引。有关详细信息,请参阅“索引”。
- 请为您的上下文提供描述。
- 使用“属性”面板配置 搜索策略。 您可以使用以下设置控制查询类型、精度和相关性:
- 语义:如果您正在使用文本数据源,请选择此选项进行语义查询。
- 相关性评分阈值:指在检索和重新排序相关数据块后应用的相似度评分阈值。评分低于此阈值的任何相关数据块都不会返回。使用此字段可提高结果的精确性。将数字提高,上下文锚定就会仅筛选出分数最高的提示词,并将其作为基础。
- 生成的最大结果数:指上下文基础根据用户的查询返回的数据块数。这有助于减小 LLM 生成的基础负载(LLM 调用的总体令牌大小),并且可以帮助您对从上下文基础获得的结果进行额外筛选。增加结果数也会增加返回的数据块数量。
- 查询– 针对搜索策略的查询。此字段支持静态值、静态、参数、动态模式。
- 结构化(预览版):如果您正在使用表格数据源,请选择此选项进行结构化查询。支持 CSV 数据格式。
- DeepRAG :选择此选项可启用高级多文档合成和检索。有关详细信息,请参阅使用 DeepRAG 。
- 启用引文– 为 DeepRAG 查询的引文启用。
- 提示词– DeepRAG 查询的提示词。此字段支持静态值、静态、参数、动态模式。
- 语义:如果您正在使用文本数据源,请选择此选项进行语义查询。
- 使用以下设置限制搜索作用域:
- Folder path prefix – Use this field to specify the folder path where your target documents are stored. You can either manually enter a static path, such as
/documents/project, or use a dynamic argument, allowing the agent to search different folders based on runtime inputs.
备注:By default, only files located directly in the specified folder are indexed. Files stored in subfolders are not included automatically. To include files from subfolders, append
/**to the path (for example,/documents/project/**). If files in subfolders are not included, you may see the following error: "No valid files to use for DeepRAG. Please update and resync your index, or use a different matching pattern."- File extension – Select the file types contained in the index. For DeepRAG, only PDF files are currently supported.
- Folder path prefix – Use this field to specify the folder path where your target documents are stored. You can either manually enter a static path, such as