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 816 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
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: 'Adaline Gateway Model Grading Example'
  3. providers:
  4. - id: adaline:openai:chat:gpt-4o-mini
  5. config:
  6. maxTokens: 120
  7. responseFormat: text
  8. prompts:
  9. - file://prompts/name_capitals_concise.txt
  10. - file://prompts/name_capitals_verbose.txt
  11. defaultTest:
  12. # Uses adaline as the grading provider
  13. options:
  14. provider:
  15. id: adaline:openai:chat:gpt-4o-mini
  16. tests:
  17. - vars:
  18. location: Sacramento
  19. assert:
  20. # Ensure the answer agrees with the provided facts
  21. - type: factuality
  22. value: The capital of California is Sacramento
  23. # Ensure the answer meets the criteria
  24. - type: model-graded-closedqa
  25. value: Does not include any extra information or facts about Sacramento
Tip!

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

Comments

Loading...