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.5 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
61
62
63
64
65
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: Web search grounding with Google Gemini models
  3. prompts:
  4. - '{{query}}'
  5. providers:
  6. # Google Search as a tool (using Gemini 2.5 Flash)
  7. - id: google:gemini-2.5-flash-preview-04-17
  8. config:
  9. temperature: 0.2
  10. maxOutputTokens: 1024
  11. tools:
  12. - googleSearch: {}
  13. # Alternate version with thinking capabilities
  14. - id: google:gemini-2.5-pro-exp-03-25
  15. config:
  16. temperature: 0.2
  17. maxOutputTokens: 1024
  18. generationConfig:
  19. thinkingConfig:
  20. thinkingBudget: 1024
  21. tools:
  22. - googleSearch: {}
  23. # Dynamic retrieval configuration for Gemini 1.5 models
  24. - id: google:gemini-1.5-flash
  25. config:
  26. temperature: 0.2
  27. maxOutputTokens: 1024
  28. tools:
  29. - googleSearchRetrieval:
  30. dynamicRetrievalConfig:
  31. mode: 'MODE_DYNAMIC'
  32. dynamicThreshold: 0
  33. tests:
  34. # Test current events
  35. - vars:
  36. query: What is the current Google stock price?
  37. assert:
  38. - type: contains
  39. value: stock
  40. - type: contains
  41. value: price
  42. # Test a technical question
  43. - vars:
  44. query: What are the latest features in TypeScript?
  45. assert:
  46. - type: contains
  47. value: TypeScript
  48. - type: contains
  49. value: feature
  50. # Test a factual question
  51. - vars:
  52. query: Who won the most recent Super Bowl?
  53. assert:
  54. - type: contains
  55. value: Super Bowl
  56. - type: contains
  57. value: won
Tip!

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

Comments

Loading...