How to customise the prompt template from the sql_query_agent ? #27708
Replies: 1 comment
-
Hello @marcusRB! I'm here to assist you with any bugs, questions, or contributions you might have. Let's tackle this challenge together! To customize the prompt template for the SQL query agent and achieve better results, you can follow these steps:
By following these steps and ensuring that your prompt template is well-structured and includes relevant examples, you should be able to achieve better results with your customized prompts. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I tried many times to customise the prompt template and I cannot to achieve my prompt template works as well.
My first part of code retrieve the toolkit and If I using the chain, the prompt needs other inputs and if I use the agent, the query spent much time to get the answer or directly, fails.
The errors come from prompt template, input_tools or tools_name
in the prompt I'm using:
the agent.run....and fails.
I tried to use the same example on LangChain, about FewShotPromptTemplate, and either works.
then chain.invoke and fails.
How do I achieve the best results with customised prompts with my examples of queries?
the library used are:
Thanks
Beta Was this translation helpful? Give feedback.
All reactions