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 591 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
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. prompts:
  3. - "You're a translator. Translate this into {{language}}: {{input}}"
  4. - 'Speak in {{language}}: {{input}}'
  5. providers:
  6. - openai:gpt-4o-mini
  7. - openai:gpt-4
  8. tests:
  9. - vars:
  10. language:
  11. - French
  12. - German
  13. - Spanish
  14. input:
  15. - 'Hello world'
  16. - 'Good morning'
  17. - 'How are you?'
  18. assert:
  19. - type: similar
  20. value: 'Hello world'
  21. provider: huggingface:sentence-similarity:sentence-transformers/all-MiniLM-L6-v2
  22. threshold: 0.2
Tip!

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

Comments

Loading...