Replies: 1 comment
-
Hello, did you get the solution for your issue? I face the similar issue, the sql agent truncates the tables and just return first row and last row or it returns with some of columns |
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.
-
Checked other resources
Commit to Help
Example Code
Description
We followed the LangChain tutorial to query our Azure SQL database using LangChain and OpenAI through a SQL Agent. While it generally works fine, we've encountered an issue where the Large Language Model (LLM) truncates the expected answer.
SQL Query Translation: We ask a question in natural language, which is correctly translated into a SQL query by the system.
Result Truncation: The SQL query returns 120 rows, but the LLM's response includes information from only the first 10-15 rows, then adds a phrase like "... and many more."
Example Scenario:
Person
with 120 children (whereage < 18
).Attempts to Resolve:
Request for Assistance:
Additional Information:
Thank you for your assistance.
System Info
System Information
Package Information
Optional packages not installed
Other Dependencies
Beta Was this translation helpful? Give feedback.
All reactions