promptfoo LLM evaluation

Building promptfoo eval suites that catch quality regressions in LLM applications: choosing assertions, LLM-as-a-judge grading, RAG and structured output checks, and comparing models on your own data.

Building LLM-as-a-judge evals with promptfoo

Designing judge prompts and rubrics in promptfoo: picking a judge model separate from the target, multi-judge voting, checking judges for bias and defending judges against prompt injection in outputs.

Writing llm-rubric assertions in promptfoo

Writing natural-language rubrics that reject wrong answers, inlining the source material the grader needs, setting thresholds and avoiding rubrics that pass anything well formatted.

Evaluating RAG pipelines with promptfoo

Measuring retrieval and answer quality separately with context-relevance, context-recall and context-faithfulness, plus end-to-end factuality, and wiring retrieved context into tests.

Measuring LLM hallucinations with promptfoo

Building tests that expose fabricated answers: reference-based factuality, context faithfulness for RAG, the hallucination red team plugin, and tracking the rate over releases.

Optimizing prompts with promptfoo optimize

Using promptfoo optimize to improve one prompt against one provider: candidate search, validation splits, choosing the target metric and reviewing results before adopting a new prompt.

Trace-based agent evaluation with promptfoo

Grading what an agent did, not only what it said: sending OpenTelemetry spans to promptfoo, trace assertions on tool calls and order, and giving graders the trace as context.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.