Skip to content

Commit

Permalink
Update toolkit.py to remove single quotes around table names (langcha…
Browse files Browse the repository at this point in the history
…in-ai#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:** langchain-ai#7457 
**Dependencies:** None
**Tag maintainer:** @hwchase17 
**Twitter handle:** None
  • Loading branch information
The1Bill authored Nov 10, 2023
1 parent 362a446 commit 5591286
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5591286

Please sign in to comment.