Editing Prompts
The left side of the Craft experience is your Prompt Editor. This is the space to write and refine your Prompt.
A Prompt is a piece of text or an instruction that you provide to a natural language model in order to generate a specific response or output
You should approach writing your Prompt as you would writing a guide for a new colleague that is capable, but has little context of your reality. A few principles that can help are:
- Understand What You Want from the LLM - Before writing your prompt, it’s essential to know what you’re trying to achieve.
- Start Simple - Begin with a straightforward sentence or question
- Be Specific and Clear - The more specific your prompt, the more accurate the response. Avoid vague or overly broad questions.
- Give Context or Background When Needed - If you want a response to focus on a particular area, include some context or background information. This can help guide the LLM toward a more useful answer.
- Use Constraints for More Focused Output - If you want the answer in a particular format or within certain constraints, include that in your prompt. You can also use Output Format to clarify what you need as a response.
- Use Step-by-Step Instructions for Complex Queries - For more complicated requests, break down your prompt into steps. This can help the LLM follow your logic and respond more effectively.
- Use Markdown Formatting - You can leverage formatting to help the LLM understand the Prompt structure or focus on key parts of the text, as they are sensitive to markdown.
Finally, keep experimenting and iterating - You don’t need to get the prompt perfect on the first try. Often, the best results come from iterating based on the responses you get.
And don’t worry, we versionate the prompt and keep everything saved, so you can always go back to a previous version, if needed.
Feel free to tweak and adjust your prompt. That’s why we built Tela.