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