Open fguillen opened 3 days ago
Sadly, the model is ignoring the instructions:
When use "database__describe_tables" function name don't put space between the "tables" arguments
randomly. And the error appears and disappears. I can not work with this right now. Checking for workarounds
@fguillen I actually think that we can improve the LLM outputs by changing this parameter description is to specify something like: "Comma-separated list of tables to describe. No spaces."
Could you please try that?
Describe the bug When using
Langchain::Tool::Database
with Postgres adaptor it, sometimes, generate no valid arguments for the function name "database__describe_tables"For example:
Generates this error:
If I add this
system
instructions:It is fixed:
To Reproduce As everything related to LLM it is difficult to reproduce
Expected behavior
The Database Tool should generate valid function calls, in this case, not include spaces in the arguments list
Terminal commands & output Commands you used and the terminal output.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Here is the full stack trace: