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.6 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: Test Databricks Foundation Model APIs
  3. prompts:
  4. - 'You are a helpful AI assistant. Answer the following: {{question}}'
  5. providers:
  6. # Databricks pay-per-token endpoint for Llama 3.3
  7. - id: databricks:databricks-meta-llama-3-3-70b-instruct
  8. config:
  9. isPayPerToken: true
  10. temperature: 0.7
  11. max_tokens: 500
  12. # Replace with your workspace URL
  13. workspaceUrl: https://your-workspace.cloud.databricks.com
  14. # Track usage for cost attribution
  15. usageContext:
  16. project: 'promptfoo-example'
  17. team: 'engineering'
  18. tests:
  19. - description: 'Test with a programming joke'
  20. vars:
  21. question: 'Why do programmers prefer dark mode?'
  22. assert:
  23. - type: contains-any
  24. value: ['light', 'eyes', 'bright', 'see', 'bugs']
  25. - type: llm-rubric
  26. value: 'Is this a funny response to a programming joke?'
  27. - description: 'Test creative writing'
  28. vars:
  29. question: 'Write a haiku about debugging code'
  30. assert:
  31. - type: javascript
  32. value: |
  33. // Check if it's roughly haiku format (3 lines)
  34. const lines = output.split('\n').filter(l => l.trim());
  35. return lines.length >= 3 ? 'pass' : 'fail';
  36. - type: llm-rubric
  37. value: 'Is this a valid haiku about debugging?'
  38. - description: 'Test knowledge about Databricks'
  39. vars:
  40. question: 'What is a Databricks Lakehouse in one sentence?'
  41. assert:
  42. - type: contains-any
  43. value: ['unified', 'data', 'analytics', 'warehouse', 'lake']
  44. - type: max-length
  45. value: 200
Tip!

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

Comments

Loading...