English
Share
Sign In
🎯

General tips for writing effective prompts

I have written grandly so far, but the most important thing in writing a prompt is to "start simply." The following is a practical example of how to get meaningful results when giving commands to AI with prompts as quickly as possible. The methodology used to organize work and make the process transparent will be taught separately, so I will leave it aside...
Breaking down complex tasks
For larger tasks, start with simple subtasks to avoid making things too complicated.
Automate repetitive processes
Start with a basic prompt and gradually improve it by incorporating more elements.
This can be easily done with the free version of OpenAI chatGPT introduced earlier.
It is important to be clear when writing prompts.
Direct commands: Use clear commands such as 'write', 'categorize', 'summarize', etc.
Experimentation is key: Seeing is believing, so try out different commands, contexts, and data to see what works best for you.
Placement and Separation: It is often more effective to place instructions at the beginning of the prompt, and using a delimiter such as '###' can help.
아래의 내용을 요약 정리해주십시오 --- Mechanics-Dynamics-Aesthetics(MDA) 프레임워크는 게임 디자인에서 게임 분석에 쓰이는 도구다. 게임의 소비를 세 가지 구성 요소, 즉 역학(Mechanics), 동역학(Dynamics), 미학(Aesthetics)으로 나누어 형식화한다. 이 세 단어는 게임의 다양한 측면을 서술하기 위해 다년간 비공식적으로 사용돼왔지만, MDA 프레임워크는 이들에 대한 정교한 정의를 제공하고, 서로 어떤 관련이 있고 플레이어의 경험에 어떤 영향을 주는지에 대한 설명을 추구한다.
💡
It is also a great way to separate using delimiters or markdown syntax (#,##,-, etc.)
Write in detail
When giving instructions to a model, be clear and specific. The more precise your prompts, the better your results will be, especially when you are targeting a specific outcome or style. There are no specific tokens or keywords that guarantee better results, but well-structured and descriptive prompts are important. Including examples in your prompts often helps you get the output you want.
Remember to consider the length of your prompt. Details are important, but don’t add unnecessary ones. Make sure the details you include are relevant and contribute to the task. Experimentation is key, and we encourage you to experiment to optimize your prompts for your application.
For example, let's show a simple prompt to extract specific information from text.
Prompt : 다음 텍스트에서 장소 이름을 추출합니다. 장소: 쉼표로 구분된 회사명 --- 과학자들은 인공지능의 무한한 발전을 기대하고 있습니다. 최근 단백질 구조를 분석하거나 신약을 개발하고 신소재를 개발들에 사용된다고 판교에서 근무하는 판교에 위치한 도파민랩, 세로토닌랩, 옥시토신랩의 해봄에 따르면 "인공지능의 다양한 도메인의 진출은 특이점이 오는 시기라고 생각합니다. 다만, 수십만개의 인공지능이 제안한 해답 중에서 우리가 의도한 대로 결과를 추출 한 경우를 명확히 특징하고 해당 부분에 대한 실험결과를 더욱 강화하여 진행하면 좋겠다"고 말했습니다.
OutPut : 추출된 장소 이름: 판교 도파민랩 세로토닌랩 옥시토신랩
Don't be inaccurate.
Ambiguity must be avoided. When we talk to people, there is a certain level of social consensus, so even if we speak vaguely or ambiguously, as long as the meaning is understood, it is acceptable, but this is a very difficult problem for machines.
Be direct and clear in your explanations: Avoid being overly elaborate or imprecise in your prompts.
Concise: Write prompts that are specific, concise, and to the point.
Prompt : 5살 아이에게 미지수와 근의방정식을 이해하기 쉽게 2~3문장으로 설명해주세요.
OutPut :"미지수는 숫자 중에 하나인데, 우리가 아직 모르는 비밀 숫자야. 근의방정식은 그 비밀 숫자를 찾기 위한 수학 게임이야. 예를 들면, 만약 '미지수 + 3 = 8'이라면, 미지수는 얼마일까요? 그걸 찾는 게 근의방정식이에요!"
Focus on what you should do, not what you shouldn't do.
Whitelist-centric instructions: Structure your prompts around what the model should do rather than what it should avoid .
Some examples of things you shouldn't do include:
Prompt : 당신은 고객에게 영화를 추천하는 영화 전문가 입니다. 단, 저에게 관심사나 개인 정보를 묻지 마세요. 제가 좋아할 만한 영화를 추천해주세요.
OutPut :죄송합니다. 고객의 관심사에 대한 정보가 없습니다. 하지만 현재 전 세계적으로 가장 인기 있는 영화 목록은 다음과 같습니다: - 액션/모험: "인터스텔라" - 우주 여행과 인간의 용기를 다루는 감동적인 영화입니다. - 드라마: "그린 북" - 인종 문제와 우정을 다루며 따뜻한 감동을 선사하는 영화입니다. - 코미디: "어벤져스: 엔드게임" - 슈퍼히어로들의 화려한 액션과 유머로 가득 찬 영화입니다. - 공상 과학: "매트릭스" - 현실과 가상 현실 사이의 경계를 탐구하는 스타일리시한 영화입니다. - 애니메이션: "라이온 킹" - 사자 시무바의 모험과 우정을 따라가는 따뜻한 애니메이션 영화입니다.
Remember: The journey of prompt design is a process of exploration and learning. You don’t have to get frustrated with experimenting and iterating to find the perfect balance for your specific needs. You can write more deeply by approaching it as a conversation with a person, or even more deeply, as a process of slowly explaining something to a child or teaching a child.
🧩
💪
ⓒ 2023. Haebom, all rights reserved.
It may be used for commercial purposes with permission from the copyright holder, provided the source is cited.