Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: update prompts for escaping column name (#10562)
boojack8a5574a369b3
diff --git a/frontend/src/plugins/ai/components/ChatPanel.vue b/frontend/src/plugins/ai/components/ChatPanel.vueindex aeb829a138..b3a83f65ae 100644--- a/frontend/src/plugins/ai/components/ChatPanel.vue+++ b/frontend/src/plugins/ai/components/ChatPanel.vue@@ -74,7 +74,9 @@ const requestAI = async (query: string) => {const databaseMetadata = context.databaseMetadata.value;const prompts: string[] = [];prompts.push(`### You are a db and SQL expert.`);- prompts.push(`### Your responses should be informative and terse.`);+ prompts.push(+ `### Your responses should be informative and terse. For example, "Find all the data in the table", you should only return query statements.`+ );if (engine) {if (databaseMetadata) {prompts.push(@@ -101,6 +103,7 @@ const requestAI = async (query: string) => {}prompts.push(`### Write a SQL statement to solve the question below`);prompts.push(`### ${query}`);+ prompts.push(`### PLEASE ADD NECESSARY QUOTES IN YOUR RESPONSE STATEMENT.`);const prompt = prompts.join("\n");await store.createMessage({conversation_id: conversation.id,