rag_index_url
Fetches an online page or document by URL, cleans HTML noise, and indexes its content into a vector knowledge base with fingerprint-based duplicate skipping.
Instructions
通过 HTTP 请求抓取在线网页或在线文档,清洗 HTML 视觉噪点并进行向量索引。
支持 SHA-256 内容指纹校验与幂等跳过,并具备网络超时与异常防护。
Args:
kb_name: 目标知识库名称
url: 目标网页或在线文档的完整 URL(必须以 http:// 或 https:// 开头)
metadata: 可选的附加结构化元数据字典
Returns:
dict[str, Any]: 索引结果状态字典
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"kb_name": "<kb_name>",
"url": "<url>"
},
"name": "rag_index_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| kb_name | Yes | ||
| metadata | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||