LegközelebbKövetkező útmutató
Statisztikai jelentőség az LLM értékelésekben
Műszaki
Műszaki ÚTMUTATÓ
Promptfoo és DeepEval szoftverkeretek az LLM tesztesetek szervezésére, modellek vagy alkalmazások futtatására, és a kimenetek ellenőrzésére állításokkal vagy metrikákkal.
Hallgassa meg ezt az útmutatótAI-narrált · ~3 min
A jelenlegi felületeik különböznek: a Promptfoo a konfiguráció‑vezérelt összehasonlításokat hangsúlyozza, míg a DeepEval a Python teszteseteket és metrikai munkafolyamatokat kínál; mindkettő még mindig igényel feladat‑specifikus teszteket és emberi felülvizsgálatot.
Promptfoo’s documentation describes a configuration-driven workflow: list prompts, providers, variables, test cases, and optional assertions, then run evaluations to compare outputs. Assertions can be deterministic, such as schema or exact-match checks, or model-graded; a test suite can also be reviewed manually. DeepEval’s current documentation centers on Python test cases and metrics and supports end-to-end, component, and trajectory evaluations; its CLI can run tests in CI. Many of its built-in metrics use LLM judges, which can add cost, latency, and judge error. Promptfoo also offers model-graded assertions and comparisons, so neither framework is limited to one metric style. These frameworks organize test execution and result review; they do not decide what “good” means for a product. Define test inputs that reflect actual use, expected outcomes or rubrics, thresholds that match the risk, and a process for reviewing failures. A model-graded metric is an estimate under its rubric, not a fact. Calibrate important metrics against human judgments and inspect disagreement. Use deterministic checks when the expected result is exact, such as required JSON fields, and human review where context or safety requires interpretation. CI integration can catch regressions before release, but nondeterministic outputs and model-service changes can make a check noisy. Pin relevant model and framework versions, record run settings, repeat or adjudicate unstable cases, and avoid failing a build on a metric that has not been validated for the task. Preserve representative failures as new regression cases after confirming their expected behavior.
Egy csapat, amely ügyfélszolgálati chatbotot karbantart, Promptfoo konfigurációt ír 50 mintakérdéssel, és állítja, hogy a válaszok tartalmazzák a szükséges politikai kifejezéseket, észleli a regressziót, amikor egy prompt szerkesztése véletlenül eltávolít egy visszatérítési politika nyilatkozatot.
Egy mérnök a DeepEval beépített hallucinációs metrikáját használja, hogy ellenőrizze, hogy egy RAG csővezeték válaszai a lekért dokumentumokban található információkra támaszkodnak-e, és jelzi azokat az eseteket, amikor a modell olyan tényeket ad hozzá, amelyek nincsenek a forrásszövegben.
Egy vállalat, amely a GPT-4o és a Claude összehasonlításával egy összefoglaló feladathoz, ugyanazokat a teszteseteket futtatja a Promptfoo modell-összehasonlító nézetén, hogy lássa a kimeneteket és a siker arányát egymás mellett, mielőtt egy alapértelmezett modellt választana.
Egy fejlesztő a DeepEval-t egy pytest bővítményként integrálja, hogy minden pull request, amely a prompt sablonokat érinti, automatikusan futtassa a regressziós csomagot, és hibát jelezzen, ha a válasz relevancia pontszámai a beállított küszöb alatt csökkennek.
Evaluation frameworks continue to add agent traces, multimodal cases, judge metrics, and CI integrations. As these products change, teams should pin versions, recheck metric definitions, and validate cost and nondeterminism before making a test a release gate. A durable eval practice combines representative examples, automated assertions, human review for ambiguous cases, and a way to update tests when product requirements change. Features and output formats vary by release; recheck the documented integration commands after upgrading dependencies and validate behavior in CI.
Ingyenes hírlevél
Minden hétköznap reggel három ellenőrzött AI történet, egyszerű angol nyelven. Örökké ingyen, hirdetések nélkül.
Minden hétköznap egy e-mail. Egy kattintással lemondhat. Soha nem értékesítjük vagy osztjuk meg az Ön címét.
Teszteld magad
Azonnali visszajelzés minden válaszra, és megosztható tanúsítvány egy ellenőrizhető azonosítóval, miután sikeresen teljesít egy kurzust.
Támogassa az ingyenes AI oktatást. AI Understanding egy 501(c)(3) nonprofit – nincs hirdetés, nincs fizetőfal, soha. Tegyen adományt
Promptfoo and DeepEval are software frameworks for organizing LLM test cases, running models or applications, and checking outputs with assertions or metrics. Their current interfaces differ: Promptfoo emphasizes configuration-driven comparisons, while DeepEval offers Python test cases and metric workflows; both still require task-specific tests and human review.
Both frameworks help organize repeatable LLM evaluations; they also allow manual review, and automated checks do not replace judgment about what quality means.
Promptfoo is configuration-driven, commonly using YAML to define what to test and how to score it.
Faithfulness extracts claims from an answer and checks each against the provided context to catch hallucinated content.
An assertion checking for required policy phrases failed after the disclaimer was inadvertently removed.
DeepEval represents test cases as structured objects that metrics then evaluate.
Tanulj tovább
További útmutatók készültek ehhez a témához
LegközelebbKövetkező útmutató
Statisztikai jelentőség az LLM értékelésekben
Műszaki