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.search.yaml 1.3 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
51
52
53
54
55
56
57
58
59
60
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: Google Vertex AI Search grounding demonstration
  3. prompts:
  4. - '{{query}}'
  5. providers:
  6. - id: vertex:gemini-2.0-flash
  7. config:
  8. temperature: 0.2
  9. maxOutputTokens: 1024
  10. tools:
  11. - googleSearch: {}
  12. - id: vertex:gemini-2.5-flash-preview-04-17
  13. config:
  14. temperature: 0.2
  15. maxOutputTokens: 1024
  16. generationConfig:
  17. thinkingConfig:
  18. thinkingBudget: 1024
  19. tools:
  20. - googleSearch: {}
  21. tests:
  22. # Test current events
  23. - vars:
  24. query: What is the current Google stock price?
  25. assert:
  26. - type: contains
  27. value: stock
  28. - type: contains
  29. value: price
  30. # Test a technical question
  31. - vars:
  32. query: What are the latest features in Python 3.13?
  33. assert:
  34. - type: contains
  35. value: Python
  36. - type: contains
  37. value: feature
  38. # Test a factual question
  39. - vars:
  40. query: Who won the latest Formula 1 Grand Prix?
  41. assert:
  42. - type: contains
  43. value: Formula 1
  44. - type: contains
  45. value: won
  46. # Test with weather information
  47. - vars:
  48. query: What is the current weather in Tokyo?
  49. assert:
  50. - type: contains
  51. value: Tokyo
  52. - type: contains
  53. value: weather
Tip!

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

Comments

Loading...