examples/eval-search-rubric/README.md
You can run this example with:
npx promptfoo@latest init --example eval-search-rubric
cd eval-search-rubric
This example demonstrates how to use the search-rubric assertion type to verify that LLM outputs contain accurate, current information.
The search-rubric assertion allows you to verify facts by searching the web in real-time. This is particularly useful for:
npx promptfoo eval
web_search_20250305 tool configurationweb_search_preview tool configurationassert:
- type: search-rubric
value: 'search query to verify'
threshold: 0.8 # Optional: minimum accuracy score (0-1)
npx promptfoo eval --cache