Optimize your cue words, just like PromptPerfect, to tap into the potential of large language models for more accurate and relevant responses.
silver lining: Provides a powerful template to help you create accurate, effective cue words to guide the model in generating quality responses.
The key idea in optimizing prompts is to stick to the fundamental rules that were in place when the prompt was written:
A cue command usually includes the following elements:
- Instructions: Explicit tasks or specific directions that you expect the AI model to perform.
- Context example: cover any external information or additional details that could help the AI generate a response more accurately.
- Input Data: A specific query or input to which you would like an answer.
- Output indication: indicates the format or type of response expected.
Usage:
- If you are calling LLM's API directly, you can enter it as system and user.
- If the question is asked directly with chatgpt/gpt4, it can be entered in two parts
Example 1
Before: ``` Classify the text into neutral, negative or positive. ``` After. ``` Prompt: ``
Example 2
Before. ``` Table departments, columns = [DepartmentId, DepartmentName] Table students, columns = [DepartmentId, StudentId, StudentName] Create a MySQL query for all students in the Computer Science Department ``` After. ``` Write a MySQL query to retrieve all records of students who are part of the Computer Science Department. Assume there are two tables involved: one named ' departments' with columns 'DepartmentId' and 'DepartmentName', and another named 'students' with columns 'DepartmentId', 'StudentId', and ' DepartmentId', 'StudentId', and ' StudentName'. The 'DepartmentId' column in the 'students' table references the 'DepartmentId' in the 'departments' table as a foreign key. The query should list all The query should list all students where 'DepartmentName' is "Computer Science". Ensure that the query is syntactically correct and properly formatted for use in a MySQL database. Ensure that the query is syntactically correct and properly formatted for use in a MySQL database.
Example 3
Before. ``` translate the following English content into Chinese, and embellish it ``` After. ``` <Please translate the following English text into Chinese, ensuring not only accuracy in translation but also enhancing the prose to flow naturally and elegantly in Chinese. The translation should read as if originally written by a native speaker, with attention to cultural nuances and idiomatic expressions. The translation should read as if originally written by a native speaker, with attention to cultural nuances and idiomatic expressions. The translation should read as if originally written by a native speaker, with attention to cultural nuances and idiomatic expressions.
Example 4
Before. `` Refinement of sentences `` After. ``` Please complete each sentence based on the following Chinese sentence starters. Your sentence completions should be grammatically correct, contextually appropriate, and show some creativity or interesting thinking to make the sentences appealing. Be sure to follow the style or tone instructions provided at the beginning of each sentence. ``