Skip to content

The agent engineering platform.

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.py
index 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 descri
Use 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 here
Only use the tables listed below.
@@ -48,10 +48,10 @@ Pay attention to use today() function to get the current date, if the question i
Use 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 here
Only use the following tables:
{table_info}
@@ -71,10 +71,10 @@ Pay attention to use CURRENT_DATE() function to get the current date, if the que
Use 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 here
Only use the following tables:
{table_info}
@@ -95,10 +95,10 @@ Pay attention to use CAST(GETDATE() as date) function to get the current date, i
Use 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 here
Only use the following tables:
{table_info}
@@ -118,10 +118,10 @@ Pay attention to use CURDATE() function to get the current date, if the question
Use 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 here
Only use the following tables:
{table_info}
@@ -142,10 +142,10 @@ Pay attention to use CURDATE() function to get the current date, if the question
Use 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 here
Only use the following tables:
{table_info}
@@ -166,10 +166,10 @@ Pay attention to use TRUNC(SYSDATE) function to get the current date, if the que
Use 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 here
Only use the following tables:
{table_info}
@@ -190,10 +190,10 @@ Pay attention to use CURRENT_DATE function to get the current date, if the quest
Use 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 here
Only use the following tables:
{table_info}
@@ -213,10 +213,10 @@ Pay attention to use date('now') function to get the current date, if the questi
Use 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 here
Only use the following tables:
{table_info}