Skip to content
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

Langchain NL2SQL Streamlit Chatbot MySQL to MSSQL #7

Open
TobyBoogerd opened this issue Jun 17, 2024 · 1 comment
Open

Langchain NL2SQL Streamlit Chatbot MySQL to MSSQL #7

TobyBoogerd opened this issue Jun 17, 2024 · 1 comment

Comments

@TobyBoogerd
Copy link

I've converted this to Microsoft SQL Server database and query. Often times after one to two successful responses, I will eventually get the following message. I am wondering if there may be someone in code that still references MySQL that should be changed to use the Microsoft SQL Server:
The error message indicates that there is an issue with the syntax of the SQL query. Specifically, it mentions an incorrect syntax near the backtick character (`). However, the provided query does not contain any backticks, which suggests that the error might be related to how the query was executed or formatted in the environment.

To resolve this issue, ensure that the query is correctly formatted and executed in the SQL Server environment. Here is the corrected query without any backticks:

SELECT [Promised_Date]
FROM [Delivery]
WHERE [Job] = '447316';

As you can see, it does provide the proper MS SQL syntax, but does not execute it.

The database info from langsmith:
Screenshot 2024-06-17 at 4 45 32 PM

@epmlu
Copy link

epmlu commented Jun 24, 2024

try using the "gpt-3.5-turbo" model

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants