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 484 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
19
20
21
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: 'Summarization'
  3. prompts:
  4. - 'Summarize this article concisely: {{article}}'
  5. providers:
  6. - openai:gpt-4o-mini
  7. - openai:gpt-4o
  8. tests:
  9. - vars:
  10. article: file://articles/*
  11. assert:
  12. - type: not-starts-with
  13. value: Sure
  14. - type: not-contains
  15. value: AI language model
  16. # Prefer shorter summaries
  17. - type: javascript
  18. value: output.length < 1000
Tip!

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

Comments

Loading...