3 ms·
The prompts that do most of the work are in this file: https://github.com/xataio/agent/blob/main/apps/dbagent/src/lib/tools/playbooks.ts https://github.com/xata
by simonw 2y ago
The prompts that do most of the work are in this file: https://github.com/xataio/agent/blob/main/apps/dbagent/src/lib/tools/playbooks.ts https://github.com/xataio/agent/blob/main/apps/dbagent/src/l... - strings stored in these variables:
SLOW_QUERIES_PLAYBOOK
GENERAL_MONITORING_PLAYBOOK
TUNING_PLAYBOOK
INVESTIGATE_HIGH_CPU_USAGE_PLAYBOOK
INVESTIGATE_HIGH_CONNECTION_COUNT_PLAYBOOK
INVESTIGATE_LOW_MEMORY_PLAYBOOK
Looks like they are orchestrated by these system prompts: https://github.com/xataio/agent/blob/69329cede85d4bc920558c019df51f111cc5068d/apps/dbagent/src/lib/ai/aidba.ts#L25-L48 https://github.com/xataio/agent/blob/69329cede85d4bc920558c0...