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

promptfooconfig.yaml 1.1 KB

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
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. # This config is used for testing markdown rendering in development.
  3. description: 'Markdown test'
  4. prompts:
  5. - '{{markdown}}'
  6. providers:
  7. # Just repeats the markdown back to us
  8. - echo
  9. tests:
  10. - description: 'Multiple images'
  11. vars:
  12. markdown: |
  13. ![Placeholder Image 1](https://via.placeholder.com/150) ![Placeholder Image 2](https://via.placeholder.com/300)
  14. - description: 'Multiple images separated by text'
  15. vars:
  16. markdown: |
  17. blah blah blah....
  18. ![Placeholder Image 1](https://via.placeholder.com/150)
  19. blah blah blah....
  20. ![Placeholder Image 2](https://via.placeholder.com/300)
  21. blah blah blah....
  22. - description: 'Failed markdown with multiple images'
  23. vars:
  24. markdown: |
  25. blah blah blah....
  26. ![Placeholder Image 1](https://via.placeholder.com/150)
  27. blah blah blah....
  28. ![Placeholder Image 2](https://via.placeholder.com/300)
  29. blah blah blah....
  30. assert:
  31. - type: javascript
  32. value: 'false'
Tip!

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

Comments

Loading...