class ListSQLDatabaseTool() should print a table description along table names #22911
victoraavila
announced in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked
Feature request
Pass
SQLDatabase()
metadata value toListSQLDatabaseTool()._run()
method, so it prompts a list of pairs (table_name, table_description), instead of a list of table_name separated by commas.Motivation
When dealing with databases with a lot of similar tables, sometimes it is easy for the LLM using ReAct to be confused with the names of the tables and then choose wrong tables to query on. I am already providing a metadata to SQLDatabase(), which describes the table and explains columns details that can be confusing. However, this table description is not shown when calling the tool
sql_db_list_tables
, which not helps the bot in choosing a table.Proposal (If applicable)
No response
Beta Was this translation helpful? Give feedback.
All reactions