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.2 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
36
37
38
39
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: 'Claude Thinking Example'
  3. prompts:
  4. - file://prompts.txt
  5. providers:
  6. - id: anthropic:claude-sonnet-4-20250514
  7. config:
  8. thinking:
  9. type: 'enabled'
  10. budget_tokens: 16000
  11. max_tokens: 32000
  12. # For comparison with AWS Bedrock (optional)
  13. - id: bedrock:us.anthropic.claude-sonnet-4-20250514-v1:0
  14. config:
  15. thinking:
  16. type: 'enabled'
  17. budget_tokens: 16000
  18. max_tokens: 32000
  19. tests:
  20. - vars:
  21. question: |
  22. You have 8 identical balls, but one is slightly heavier than the others.
  23. Using a balance scale, what is the minimum number of weighings needed to
  24. find the heavier ball?
  25. assert:
  26. - type: llm-rubric
  27. value: |
  28. The answer should explain why 2 weighings are sufficient
  29. - vars:
  30. question: |
  31. A train leaves Boston at 8:00 AM traveling west at 100 mph. Another train
  32. leaves Chicago at 10:00 AM traveling east at 120 mph. If the distance
  33. between Boston and Chicago is 1000 miles, at what time will the trains meet?
  34. assert:
  35. - type: llm-rubric
  36. value: |
  37. The trains will meet at 1:38 PM.
Tip!

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

Comments

Loading...