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 911 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
22
23
24
25
26
27
28
29
30
31
32
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: 'Groq Provider Demo'
  3. prompts:
  4. - 'Answer this question as concisely as possible: {{calculation}}'
  5. - 'Calculate the following and provide a brief explanation: {{calculation}}'
  6. providers:
  7. - id: groq:gemma2-9b-it
  8. - id: groq:llama-3.3-70b-versatile
  9. config:
  10. max_completion_tokens: 300
  11. tools:
  12. - type: function
  13. function:
  14. name: calculate
  15. description: 'Evaluate a mathematical expression'
  16. parameters:
  17. type: object
  18. properties:
  19. expression:
  20. type: string
  21. description: 'The mathematical expression to evaluate'
  22. required:
  23. - 'expression'
  24. tool_choice: auto
  25. tests:
  26. - vars:
  27. calculation: 25 * 4 + 10
  28. - vars:
  29. calculation: (8 + 2) * 5
Tip!

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

Comments

Loading...