-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is the SqlToolkit agent toolkit only supported for OpenAI LLMs? #563
Comments
I’ve been running into the same issues as you and came to mostly the same conclusions as you. I’ve found this comment on the langchain repo that makes me think a very custom fine tuning is going to be be needed to get a SQL agent with a huggingface model to work the way I want. |
I’m actually thinking of using OpenAI SQL Agent questions/answers and building a fine tuning data set, that I can then plug into a Huggingface model. If you have any other ideas or find a better solution I’d love to hear/talk about it. |
Hi, @mikebars! I'm here to help the LangChain team manage their backlog and I wanted to let you know that we are marking this issue as stale. From what I understand, you reported an issue with the Before we proceed, we would like to confirm if this issue is still relevant to the latest version of the LangChain repository. If it is, please let us know by commenting on this issue. Otherwise, feel free to close the issue yourself or it will be automatically closed in 7 days. Thank you for your understanding and we look forward to your response. |
I see that in the
SqlToolkit
constructor it creates aQueryCheckerTool
without arguments:Which causes the
else
branch of theQueryCheckerTool
constructor to run:Which then creates the default
OpenAI
LLMChainHere's a reproduction of the issue (attempting to use the
HuggingFaceInference
LLM):And here is a patch I made that appears to allow the functionality to progress further:
And here is my patched code that is able to reach a different error state:
However, I still get an error as output, which makes me think perhaps these cases are not yet supported:
The text was updated successfully, but these errors were encountered: