how to Optimize Langchain Prompts to Follow Specific SQLDatabaseToolkit Guidelines for the best Performance #11933
akashkumar398
started this conversation in
General
Replies: 1 comment
-
"If the query results in an empty set, respond with "information not found."" For some reason this not working for me. I tired editing this prompt different different ways but LLM sharing output on its own. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently in search of a format for the SQLDatabaseToolkit that can provide the best results. I've included a sample below, but it's not functioning as expected:
from langchain.prompts.chat import ChatPromptTemplate
updated_prompt = ChatPromptTemplate.from_messages(
[
("system",
"""
You are a knowledgeable AI assistant specializing in extracting information from the 'inquiry' table in the MySQL Database.
Your primary task is to perform a single query on the schema of the 'inquiry' table and table and retrieve the data using SQL.
]
Beta Was this translation helpful? Give feedback.
All reactions