Skip to content
Back to skills

Rag Debug

ASecurity

Diagnose RAG pipeline issues — check Qdrant collection, embedding provider, MinIO storage, and recent chunk uploads

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 6, 2026
ai-agentsbashdockerapi

Works with

  • api

Security analysis

A96/100
  • mediumUses curl or wget to download content

Pro shows the line behind each finding and how to fix it

Scanned December 6, 2026

npx -y skills add hyhmrright/Confer --skill rag-debug --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rag Debug?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rag Debug
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hyhmrright-rag-debug-confer/badge)](https://www.skillsdirectory.com/skills/hyhmrright-rag-debug-confer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rag-debug
description: Diagnose RAG pipeline issues — check Qdrant collection, embedding provider, MinIO storage, and recent chunk uploads
disable-model-invocation: true
---

按顺序执行以下诊断步骤,汇总哪一步有问题并给出修复建议:

**1. Qdrant 集合状态**
```bash
curl -s http://localhost:6333/collections/knowledge_chunks | jq '{points: .result.points_count, status: .result.status}'
```
预期:`status: "green"`,`points > 0`(若已上传文档)

**2. 最近嵌入日志**
```bash
docker logs confer-gateway-1 2>&1 | grep -E 'embed|chunk|qdrant|vector' | tail -20
```
检查是否有错误(400 Bad Request 通常是 ULID 未转 UUID)

**3. Embedding provider 生效情况**
检查 `packages/gateway/src/lib/embedding.ts` 中 `EMBEDDING_PROVIDER_PRIORITY` 顺序,
再查环境变量哪个 key 已配置:
```bash
docker exec confer-gateway-1 env | grep -E 'OPENAI_API_KEY|GLM_API_KEY|QWEN_API_KEY' | sed 's/=.*/=***/'
```

**4. MinIO 存储状态**
```bash
docker exec confer-minio-1 mc ls local/knowledge-docs/ 2>/dev/null | tail -10
```
若 mc 未配置,改用:
```bash
docker logs confer-minio-1 2>&1 | grep -E 'PUT|GET|ERROR' | tail -10
```

**5. Gateway 服务健康**
```bash
docker ps --filter name=confer-gateway --format "{{.Names}}: {{.Status}}"
```

**常见问题速查**:
- Qdrant 400 → ULID 未转 UUID,检查 `toUUID()` 是否调用
- 嵌入维度不匹配 → 切换了 provider 但 collection 维度未重建(需删除 collection 重建)
- MinIO 连接拒绝 → Docker 网络用 `minio:9000`,不能用 `localhost:9000`
- 无日志输出 → 检查 stream.ts 中 RAG tool 是否注册到当前 conversation 类型

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.