From 55912868da0bdcc51d96a2bc2a4f07f88a760630 Mon Sep 17 00:00:00 2001 From: The1Bill Date: Fri, 10 Nov 2023 09:39:15 -0500 Subject: [PATCH] Update toolkit.py to remove single quotes around table names (#12445) **Description:** Removing the single quote wrapper around the table names in the SQL agent toolkit.py file as it misleads the LLM into querying against tables with single quotes around their names. **Issue:** #7457 **Dependencies:** None **Tag maintainer:** @hwchase17 **Twitter handle:** None --- libs/langchain/langchain/agents/agent_toolkits/sql/toolkit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/langchain/langchain/agents/agent_toolkits/sql/toolkit.py b/libs/langchain/langchain/agents/agent_toolkits/sql/toolkit.py index dfcdd39083fea..32b68840a7553 100644 --- a/libs/langchain/langchain/agents/agent_toolkits/sql/toolkit.py +++ b/libs/langchain/langchain/agents/agent_toolkits/sql/toolkit.py @@ -38,7 +38,7 @@ def get_tools(self) -> List[BaseTool]: "schema and sample rows for those tables. " "Be sure that the tables actually exist by calling " f"{list_sql_database_tool.name} first! " - "Example Input: 'table1, table2, table3'" + "Example Input: table1, table2, table3" ) info_sql_database_tool = InfoSQLDatabaseTool( db=self.db, description=info_sql_database_tool_description