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
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. providers:
  3. - id: llama
  4. label: llama3-8b
  5. config:
  6. baseUrl: http://localhost:8080
  7. prompts:
  8. - 'Write a funny tweet about {{topic}}'
  9. - "Human: Write a funny tweet about {{topic}}\nAI:"
  10. - "Q: Create a humorous tweet about {{topic}}\nA:"
  11. - '[INST] Write a funny tweet about {{topic}} [/INST]'
  12. - "<human>: Craft a witty tweet about {{topic}}\n<assistant>:"
  13. - "### Instruction: Compose a clever tweet on the topic of {{topic}}\n### Response:"
  14. - "System: You are a witty AI.\nUser: Tweet about {{topic}}\nAssistant:"
  15. - "<s>[INST] <<SYS>>\nYou're a comedy writer.\n<</SYS>>\nWrite a funny tweet about {{topic}} [/INST]"
  16. - "{'role': 'system', 'content': 'You specialize in viral tweets.'}\n{'role': 'user', 'content': 'Write a hilarious tweet about {{topic}}'}\n{'role': 'assistant', 'content':"
  17. - "# Context: You are a social media expert known for viral content.\n# Human: Create a funny tweet about {{topic}}\n# AI:"
  18. tests:
  19. - vars:
  20. topic: 'San Francisco'
  21. assert:
  22. - type: icontains
  23. value: 'San Francisco'
  24. - type: answer-relevance
Tip!

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

Comments

Loading...