Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

prompts.txt 637 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  1. Your first prompt goes here
  2. ---
  3. Next prompt goes here. You can substitute variables like this: {{var1}} {{var2}} {{var3}}
  4. ---
  5. This is the next prompt.
  6. These prompts are nunjucks templates, so you can use logic like this:
  7. {% if var1 %}
  8. {{ var1 }}
  9. {% endif %}
  10. ---
  11. [
  12. {"role": "system", "content": "This is another prompt. JSON is supported."},
  13. {"role": "user", "content": "Using this format, you may construct multi-shot OpenAI prompts"}
  14. {"role": "user", "content": "Variable substitution still works: {{ var3 }}"}
  15. ]
  16. ---
  17. If you prefer, you can break prompts into multiple files (make sure to edit promptfooconfig.yaml accordingly)
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...