Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
sidd2pir a796527295
feat: assertion generation (#4559)
2 months ago
..
a796527295
feat: assertion generation (#4559)
2 months ago
a796527295
feat: assertion generation (#4559)
2 months ago
a796527295
feat: assertion generation (#4559)
2 months ago

README.md

You have to be logged in to leave a comment. Sign In

assertion-generate (Assertion Generation Example)

You can run this example with:

npx promptfoo@latest init --example assertion-scoring-override

This example demonstrates valid configs for assertion generation in promptfoo.

  1. A promptfoo config with prompts + assertions
  2. A promptfoo config with just 1 prompt, and no assertions or test cases

Getting Started

Try the following options:

Generate initial set of assertions (for a config that has none)

promptfoo generate assertions --config examples/assertions-generate/promptfooconfig-minimal.yaml -o test.yaml --type llm-rubric

Generate missing llm-rubric assertions (for a config that already has some)

promptfoo generate assertions --config examples/assertions-generate/promptfooconfig.yaml -o test.yaml --type llm-rubric
Tip!

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

Comments

Loading...