Can you make a flowchart for manually constructing a good prompt by a user for answering…
- User
Can you make a flowchart for manually constructing a good prompt by a user for answering his questions or solving his tasks in an efficient way?
- Assistant
Below is a step-by-step guide in a flowchart-like format for manually constructing a good prompt for an AI to effectively answer questions or solve tasks.
Start -> Define the task at hand - Is it a question? - Is it a problem that requires a solution? Gather necessary information about the task - What is the subject matter? - What are the key details that need to be included? - What is the desired outcome or type of response? Determine the complexity of the task - Simple factual query? - Complex problem-solving? Identify the audience or the expected knowledge level of the AI - General knowledge? - Expert level? Decide on the style of the response - Formal or informal? - Detailed explanation or concise answer? Construct the initial version of the prompt - Begin with a clear and direct question or statement. - Include all relevant details. - Be specific about what you are asking or the problem you need solved. Review the prompt - Is it clear and unambiguous? - Does it include all necessary information without being overly detailed or verbose? Revise if necessary - Modify the prompt to clarify any ambiguous areas. - Remove any unnecessary details that may confuse the AI. Finalize the prompt - Ensure the final prompt is coherent and to the point. - Confirm that it sets clear expectations for the type of response. Test the prompt (Optional) - Use the prompt with the AI and evaluate the response. - Is the response accurate and adequate? - Does the AI seem to understand the prompt correctly? Iterate based on feedback - If the response is not what you expected, refine the prompt. - Incorporate any new insights or information that could improve the prompt. End -> Use the refined prompt to get your answer or solution. - User
Provide a comprehensive example of using that flowchart for devising a prompt for this task: “solve a game of 24 with input numbers 2, 3, 4 en 5”
- Assistant
Following the flowchart provided earlier, let's construct a good prompt for the task "solve a game of 24 with input numbers 2, 3, 4 and 5."
- User
Provide a comprehensive example of using that flowchart for devising a prompt for this task: do genealogical research for a person ROOTPERSON named Johannes Franciscus Henricus Maria Bours, born december 30, 1956 in Tilburg, The Netherlands. Go back in history as far as possible, double check the info you find as much as possible and add as much relevant details of the persons in the family tree of ROOTPERSON as you can find (such as the job of a person, illneses etc). Present the family tree found as a tree.
- Assistant
- User
Is it possible to incorporate into this process of prompt generation an evaluation about whether the question or task specified by the user can be solved by prompting a single LLM or could be better posed as input to a team of AI Assistants in a autonomous agent framework where the agents can use tools (e.g. for using a calculator, searching or webscraping the Internet, searching through papers on ArXiv, etc). This will be dependent on the complexity of the question of task.
- Assistant
- User
Provide a comprehensive example of using that new flowchart for devising a prompt for this task: do genealogical research for a person ROOTPERSON named Johannes Franciscus Henricus Maria Bours, born december 30, 1956 in Tilburg, The Netherlands. Go back in history as far as possible, double check the info you find as much as possible and add as much relevant details of the persons in the family tree of ROOTPERSON as you can find (such as the job of a person, illneses etc). Present the family tree found as a tree.
- Assistant
- User
Provide a comprehensive example of using that new flowchart for devising a prompt for this task: solve a game of 24 using numbers 2, 3, 4 and 5
- Assistant
- User
Also incorporate into the flowchart if it is advicable to use more advanced prompting techniques such as Tree of Thoughts ToT to answer or solve the question or task at hand. ToT for example is able to solve the game of 24 problem !
- Assistant
- User
Do you have any other advice for an even better and more advanced version of the flowchart ?
- Assistant