Open Ranork opened 8 months ago
Prompt engineering for large language models is challenging. It involves providing clear context, specifying desired outcomes, and filtering unwanted outputs. Finding the perfect formula takes experimentation – playing with keywords, sentence structures, and prompt lengths.
I hope someone in the community can share their prompts that successfully tackled similar scenarios. In the meantime, this document helped me understand some best practices for prompt engineering
We have done these experiments on other artificial intelligence models, but it would be great if anyone who has solved similar situations could share their prompt formats :) Thanks for fast answer!
We are trying to make a sql query generator with chat complation.
prompt:
Show me the customers
history:
It gives me cool sql commands but some table names are not logical names (like crnt_tbl for current table). AI tries to access tables that do not exist in the schema, causing the query to not work.
I want it to only use existing table names in the schema. How can I set this up?