Replies: 4 comments 3 replies
-
Hey there, @susandong! 👋 I'm a bot here to help you with bugs, questions, and becoming a contributor. Let's tackle this issue together! The issue you're encountering is likely due to the Here's how you can modify your code to use
By following these steps, you can ensure that the agent is properly connected to the database and that the SQL queries are correctly executed [1][2]. |
Beta Was this translation helpful? Give feedback.
-
I am getting the same error, the agent is getting stuck during the processing and reasoning step, and it's not progressing beyond the initial internal thought or action. Here is the feedback I am getting when I ask it to fetch data "To find the number of approved opportunities for the period 2024P05, we need to query the Thanks a lot, |
Beta Was this translation helpful? Give feedback.
-
Hello everyone. Has create_sql_agent been removed from the project? I can't find it in the latest versions of Langchain experimental |
Beta Was this translation helpful? Give feedback.
-
Also running into this issue with a local model using Ollama, it seems to not even be attempting to use the tools at all. |
Beta Was this translation helpful? Give feedback.
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
I am using the above code to create sql agent, the code runs, it generates reasonable sql queries, but the query results were all hallucinated, not the actual result based on the database. wondering how is the agent connected to db, since the agent arguments don't include db and why sql_db_query tool doesn't execute on the sql db.
@Duba
System Info
langchain==0.2.5
langchain-aws==0.1.6
langchain-chroma==0.1.0
langchain-community==0.2.5
langchain-core==0.2.7
langchain-experimental==0.0.51
langchain-text-splitters==0.2.1
Beta Was this translation helpful? Give feedback.
All reactions