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

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

Comments

Loading...