Using SQLDatabaseSequentialChain, discrepancy between Answer and SQLResult #15060
ShehneelAhmedKhan
started this conversation in
General
Replies: 1 comment
-
Hello Ahmed, Have you fixed this bug yet? |
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
-
This is my code:
llm = OpenAI(temperature=0, model_name="gpt-3.5-turbo")
db_chain = SQLDatabaseSequentialChain.from_llm(llm=llm, database=db, verbose=True, top_k=0) # Can use top_k if face error
return db_chain.run(message)
Output:

The answer is denying although the sqlresult gets the answer.
Note: This is happening only in this table, other tables are being answered correctly.
using langchain==0.0.175
Any suggestion?
Beta Was this translation helpful? Give feedback.
All reactions