debug-knowledge
Installation
SKILL.md
Debug Knowledge Service
You are debugging the Copilot Knowledge service, which exports models from one tenant's WrenAI instance and syncs them to other tenants.
Architecture Overview
┌─────────────────┐ Export ┌──────────────────┐ Sync ┌─────────────────┐
│ Source Tenant │ ───────────► │ KnowledgeItem │ ────────────► │ Target Tenant │
│ (WrenAI + DB) │ │ (hub-backend) │ │ (WrenAI + DB) │
└─────────────────┘ └──────────────────┘ └─────────────────┘
Key services location: hub-backend/app/services/hub/chord_ai/knowledge/
Debugging Setup
Always start by setting up your test environment. Use mise for correct Ruby version: