Replies: 1 comment
-
the |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
While working with a Langchain use case, I encountered an issue where the console output of the SQL Server table structure did not include column comments. Seeking assistance from a relevant technical community, I learned that MySQL indeed supports displaying such comments in its table structure information. Upon examining the source code of the
SQLDatabase
component and consultingSqlAlchemy
, I discovered a method to retrieve comment details for SQL Server columns.Consequently, I resorted to creating a custom agent that enables the large language model to comprehend the meaning of fields—particularly those with non-standard naming conventions or special identifiers—when generating statistical SQL queries. Ideally, in a future update, the
get_table_info
function within theSQLDatabase
section would natively incorporate support for retrieving these column comments.System Info
System Information
Package Information
Packages not installed (Not Necessarily a Problem)
The following packages were not found:
Beta Was this translation helpful? Give feedback.
All reactions