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
- Classify the failure as connectivity, SQL/schema, vector shape or metric, hybrid ranking, index freshness, or latency.
- State a short hypothesis and the evidence needed to confirm or reject it.
- Run only read-only checks first. Prefer metadata inspection,
EXPLAIN, boundedSELECT, index status, counts, dimensions, and timing measurements. - Record each check as command or query, observed output, and interpretation. Do not claim that an unexecuted check succeeded.
- Compare stored vector dimensions and distance metric with the query embedding and index configuration.
- 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.
- For missing new data, distinguish transaction visibility, ingestion completion, and index refresh. Confirm each from database evidence.
- For latency, separate connection, query planning, database execution, transfer, and client rendering. Report repeated measurements and the median when possible.
- Rank likely causes by evidence strength. Mark assumptions and unknowns explicitly.
- 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:
- Symptom: expected versus observed behavior.
- Evidence: relevant queries or commands and observed results.
- Diagnosis: confirmed cause, leading hypothesis, and ruled-out causes.
- Safe fix: minimal change, risk, and rollback.
- Verification: exact checks and success criteria.
- Unknowns: anything not yet verified.

Scan to join WeChat group