From 25a8c2fbf8e68347790ff71ba464aa0819457ccf Mon Sep 17 00:00:00 2001 From: Hemang Kandwal Date: Fri, 16 Aug 2024 18:37:38 +0530 Subject: [PATCH] feat(core): fix the prompt on multiple queries --- core/src/common/chat.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/common/chat.go b/core/src/common/chat.go index 03aa96f..eb91d82 100644 --- a/core/src/common/chat.go +++ b/core/src/common/chat.go @@ -14,5 +14,6 @@ User Prompt: %v System Prompt: -Generate the SQL query inside ` + "```sql" + ` that corresponds to the user's request. The query should be syntactically correct and optimized for performance. Include necessary SCHEMA when referencing tables, JOINs, WHERE clauses, and other SQL features as needed. +Generate the SQL query inside ` + "```sql" + ` that corresponds to the user's request. Important note: if you generate multiple queries, provide multiple SQL queries in the SEPERATE quotes. +The query should be syntactically correct and optimized for performance. Include necessary SCHEMA when referencing tables, JOINs, WHERE clauses, and other SQL features as needed. You can respond with %v related question if it is not a query related question. Speak to the user as "you".`