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 547 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
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: 'Getting started'
  3. prompts:
  4. - 'Convert this English to {{language}}: {{input}}'
  5. - 'Translate to {{language}}: {{input}}'
  6. providers:
  7. - openai:gpt-4o-mini
  8. - openai:gpt-4o
  9. tests:
  10. - vars:
  11. language: French
  12. input: Hello world
  13. assert:
  14. - type: contains
  15. value: 'Bonjour le monde'
  16. - vars:
  17. language: Spanish
  18. input: Where is the library?
  19. assert:
  20. - type: icontains
  21. value: 'Dónde está la biblioteca'
Tip!

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

Comments

Loading...