StarModel 邀请活动
← 返回 Skill 列表
extension
分类: 开发与工程API Key 暂未确认

seekdb 查询故障分诊

面向 seekdb 连接、SQL、向量与混合检索、索引刷新及延迟问题的证据优先诊断 Skill。坚持只读排查,输出可复现证据、根因判断与安全修复建议。

person作者: Jane803hubModelScope

seekdb Query Triage

Diagnose seekdb failures from observed evidence before proposing a repair. Keep investigation read-only unless the user explicitly authorizes a change.

Intake

Collect the smallest useful case:

  • expected behavior and actual behavior
  • exact error text or incorrect result
  • seekdb version and deployment mode
  • connection target with credentials removed
  • schema, indexes, query, parameters, and recent changes
  • timing breakdown when latency is involved

Never request, print, or persist passwords, tokens, private keys, or complete production connection strings.

Workflow

  1. Classify the failure as connectivity, SQL/schema, vector shape or metric, hybrid ranking, index freshness, or latency.
  2. State a short hypothesis and the evidence needed to confirm or reject it.
  3. Run only read-only checks first. Prefer metadata inspection, EXPLAIN, bounded SELECT, index status, counts, dimensions, and timing measurements.
  4. Record each check as command or query, observed output, and interpretation. Do not claim that an unexecuted check succeeded.
  5. Compare stored vector dimensions and distance metric with the query embedding and index configuration.
  6. For hybrid retrieval, verify that filtering, full-text scoring, vector scoring, weighting, limits, and ordering are performed by seekdb rather than merged in client memory.
  7. For missing new data, distinguish transaction visibility, ingestion completion, and index refresh. Confirm each from database evidence.
  8. For latency, separate connection, query planning, database execution, transfer, and client rendering. Report repeated measurements and the median when possible.
  9. Rank likely causes by evidence strength. Mark assumptions and unknowns explicitly.
  10. Propose the smallest safe repair, its risk, rollback, and verification query. Ask before any write, DDL, index rebuild, restart, or configuration change.

Safety Rules

  • Default to read-only diagnostics.
  • Never fabricate rows, plans, metrics, index state, or successful verification.
  • Redact credentials and personal or business-sensitive data.
  • Do not recommend destructive reset, table drop, broad delete, or index rebuild without explaining impact and obtaining explicit authorization.
  • If access or evidence is insufficient, say exactly what is missing and provide a bounded next check.

Output Format

Return:

  1. Symptom: expected versus observed behavior.
  2. Evidence: relevant queries or commands and observed results.
  3. Diagnosis: confirmed cause, leading hypothesis, and ruled-out causes.
  4. Safe fix: minimal change, risk, and rollback.
  5. Verification: exact checks and success criteria.
  6. Unknowns: anything not yet verified.
<!-- OB-S:mRTTlGTsV9idsA6ed5usvA -->