The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
remove quotes from sql database prompts (caused syntax error) (#4101)
Hans van Dam01531cb16d09
diff --git a/langchain/chains/sql_database/prompt.py b/langchain/chains/sql_database/prompt.pyindex 83acefc48e..a2b6f4c28e 100644--- a/langchain/chains/sql_database/prompt.py+++ b/langchain/chains/sql_database/prompt.py@@ -11,10 +11,10 @@ Pay attention to use only the column names that you can see in the schema descriUse the following format:-Question: "Question here"-SQLQuery: "SQL Query to run"-SQLResult: "Result of the SQLQuery"-Answer: "Final answer here"+Question: Question here+SQLQuery: SQL Query to run+SQLResult: Result of the SQLQuery+Answer: Final answer hereOnly use the tables listed below.@@ -48,10 +48,10 @@ Pay attention to use today() function to get the current date, if the question iUse the following format:-Question: "Question here"-SQLQuery: "SQL Query to run"-SQLResult: "Result of the SQLQuery"-Answer: "Final answer here"+Question: Question here+SQLQuery: SQL Query to run+SQLResult: Result of the SQLQuery+Answer: Final answer hereOnly use the following tables:{table_info}@@ -71,10 +71,10 @@ Pay attention to use CURRENT_DATE() function to get the current date, if the queUse the following format:-Question: "Question here"-SQLQuery: "SQL Query to run"-SQLResult: "Result of the SQLQuery"-Answer: "Final answer here"+Question: Question here+SQLQuery: SQL Query to run+SQLResult: Result of the SQLQuery+Answer: Final answer hereOnly use the following tables:{table_info}@@ -95,10 +95,10 @@ Pay attention to use CAST(GETDATE() as date) function to get the current date, iUse the following format:-Question: "Question here"-SQLQuery: "SQL Query to run"-SQLResult: "Result of the SQLQuery"-Answer: "Final answer here"+Question: Question here+SQLQuery: SQL Query to run+SQLResult: Result of the SQLQuery+Answer: Final answer hereOnly use the following tables:{table_info}@@ -118,10 +118,10 @@ Pay attention to use CURDATE() function to get the current date, if the questionUse the following format:-Question: "Question here"-SQLQuery: "SQL Query to run"-SQLResult: "Result of the SQLQuery"-Answer: "Final answer here"+Question: Question here+SQLQuery: SQL Query to run+SQLResult: Result of the SQLQuery+Answer: Final answer hereOnly use the following tables:{table_info}@@ -142,10 +142,10 @@ Pay attention to use CURDATE() function to get the current date, if the questionUse the following format:-Question: "Question here"-SQLQuery: "SQL Query to run"-SQLResult: "Result of the SQLQuery"-Answer: "Final answer here"+Question: Question here+SQLQuery: SQL Query to run+SQLResult: Result of the SQLQuery+Answer: Final answer hereOnly use the following tables:{table_info}@@ -166,10 +166,10 @@ Pay attention to use TRUNC(SYSDATE) function to get the current date, if the queUse the following format:-Question: "Question here"-SQLQuery: "SQL Query to run"-SQLResult: "Result of the SQLQuery"-Answer: "Final answer here"+Question: Question here+SQLQuery: SQL Query to run+SQLResult: Result of the SQLQuery+Answer: Final answer hereOnly use the following tables:{table_info}@@ -190,10 +190,10 @@ Pay attention to use CURRENT_DATE function to get the current date, if the questUse the following format:-Question: "Question here"-SQLQuery: "SQL Query to run"-SQLResult: "Result of the SQLQuery"-Answer: "Final answer here"+Question: Question here+SQLQuery: SQL Query to run+SQLResult: Result of the SQLQuery+Answer: Final answer hereOnly use the following tables:{table_info}@@ -213,10 +213,10 @@ Pay attention to use date('now') function to get the current date, if the questiUse the following format:-Question: "Question here"-SQLQuery: "SQL Query to run"-SQLResult: "Result of the SQLQuery"-Answer: "Final answer here"+Question: Question here+SQLQuery: SQL Query to run+SQLResult: Result of the SQLQuery+Answer: Final answer hereOnly use the following tables:{table_info}