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 891 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
  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:llama3-groq-8b-8192-tool-use-preview
  9. config:
  10. tools:
  11. - type: function
  12. function:
  13. name: calculate
  14. description: 'Evaluate a mathematical expression'
  15. parameters:
  16. type: object
  17. properties:
  18. expression:
  19. type: string
  20. description: 'The mathematical expression to evaluate'
  21. required:
  22. - 'expression'
  23. tool_choice: auto
  24. tests:
  25. - vars:
  26. calculation: 25 * 4 + 10
  27. - vars:
  28. calculation: (8 + 2) * 5
Tip!

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

Comments

Loading...