chore(sources): refresh NocoDB/SeaFile/Wiki.js/RAGFlow counts (sources-sync 2026-07-27)
This commit is contained in:
+14
-14
@@ -3,15 +3,15 @@
|
||||
> 数据源: RAGFlow (http://10.10.10.254:9980/) 14 个 KB 全文检索结果
|
||||
> 用途: MiniMax code / Hermes 跨 agent 问 "Robin 的 RAGFlow 里有什么"
|
||||
> 更新: 自动同步可用性 + 手动维护 KB 列表
|
||||
> 上次同步: **2026-07-26T17:51:45Z** · landing 200 · /api/v1/datasets 401
|
||||
> 上次同步: **$(date -u +%Y-%m-%dT%H:%M:%SZ)** · landing ${RF_LANDING_HTTP} · /api/v1/datasets ${RF_HTTP_200}
|
||||
|
||||
## RAGFlow 服务可用性
|
||||
|
||||
| Endpoint | HTTP code | 含义 |
|
||||
| --- | --- | --- |
|
||||
| GET / (landing) | 200 | 控制台可达 |
|
||||
| GET /api/v1/health | 404 | API 健康 |
|
||||
| GET /api/v1/datasets | 401 | KB 列表 endpoint |
|
||||
| GET / (landing) | ${RF_LANDING_HTTP} | 控制台可达 |
|
||||
| GET /api/v1/health | ${RF_HEALTH_HTTP} | API 健康 |
|
||||
| GET /api/v1/datasets | ${RF_HTTP_200} | KB 列表 endpoint |
|
||||
|
||||
> 注意: 2026-07-17 起 Robin 桌面 embedding / bge-reranker 服务宕机,导致 NAS 上 RAGFlow KB retrieval (向量检索) 不可用,但元数据 + 文档下载仍 OK,KB 内容同步 (chunks 拉 + 本地 keyword grep) 走降级路径。
|
||||
|
||||
@@ -32,22 +32,22 @@
|
||||
|
||||
## 检索降级路径 (KB retrieval 不可用时)
|
||||
|
||||
```bash
|
||||
\`\`\`bash
|
||||
# 1. 列文档
|
||||
ragflow_api="http://10.10.10.254:9980/api/v1/datasets/${KB}/documents"
|
||||
curl -s -H "Authorization: Bearer ${RF_TOKEN}" "$ragflow_api" | jq '.data[]'
|
||||
ragflow_api="http://10.10.10.254:9980/api/v1/datasets/\${KB}/documents"
|
||||
curl -s -H "Authorization: Bearer \${RF_TOKEN}" "\$ragflow_api" | jq '.data[]'
|
||||
|
||||
# 2. 取单个文档
|
||||
curl -s "http://10.10.10.254:9980/api/v1/datasets/${KB}/documents/${DOC_ID}" \
|
||||
-H "Authorization: Bearer ${RF_TOKEN}" --output /tmp/doc.pdf
|
||||
curl -s "http://10.10.10.254:9980/api/v1/datasets/\${KB}/documents/\${DOC_ID}" \\
|
||||
-H "Authorization: Bearer \${RF_TOKEN}" --output /tmp/doc.pdf
|
||||
|
||||
# 3. chunks 全拉 + 本地 grep
|
||||
python3 ~/.openclaw/scripts/ragflow_chunks.py "${KB}" > /tmp/chunks.json
|
||||
python3 ~/.openclaw/scripts/ragflow_chunks.py "\${KB}" > /tmp/chunks.json
|
||||
grep -iE "vascular shear" /tmp/chunks.json | head -20
|
||||
```
|
||||
\`\`\`
|
||||
|
||||
## 维护方式
|
||||
|
||||
- 自动触发: `~/.local/bin/openwiki-update-sources.sh` (每天 02:30)
|
||||
- 手动触发: `bash ~/.local/bin/openwiki-update-sources.sh`
|
||||
- 数据格式: 跟 `devops/ragflow-ops` skill 共用 (Bearer token + /api/v1/datasets)
|
||||
- 自动触发: \`~/.local/bin/openwiki-update-sources.sh\` (每天 02:30)
|
||||
- 手动触发: \`bash ~/.local/bin/openwiki-update-sources.sh\`
|
||||
- 数据格式: 跟 \`devops/ragflow-ops\` skill 共用 (Bearer token + /api/v1/datasets)
|
||||
|
||||
Reference in New Issue
Block a user