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.1 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
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: Example base config that can be used to generate additional assertions
  3. providers:
  4. - openai:gpt-4.1-mini
  5. prompts:
  6. - 'Translate the following text to {{language}}: {{text}}. IMPORTANT: Ensure the response is less than 100 characters'
  7. defaultTest:
  8. assert:
  9. - type: llm-rubric
  10. value: Rate the accuracy of the translation of {{text}} from English to {{language}}
  11. metric: accuracy
  12. - type: llm-rubric
  13. value: Rate the fluency of the translation of {{text}} from English to {{language}}
  14. metric: fluency
  15. - type: llm-rubric
  16. value: Rate the grammar of the translation of {{text}} from English to {{language}}
  17. metric: grammar
  18. options:
  19. provider:
  20. text: openai:gpt-4.1-mini
  21. embedding: openai:embedding:text-embedding-3-small
  22. tests:
  23. - description: Default scoring function (geometric mean)
  24. vars:
  25. language: Spanish
  26. text: Hello, how are you today?
  27. assert:
  28. - type: similar
  29. value: Como estas?
  30. metric: similar
Tip!

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

Comments

Loading...