2024-01-02 11:29:13 +00:00
|
|
|
{ buildNpmPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildNpmPackage rec {
|
|
|
|
pname = "promptfoo";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.57.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "promptfoo";
|
|
|
|
repo = "promptfoo";
|
|
|
|
rev = "${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-YjVnQmDfc6KBykAHPcRoM88Njlb6odhKWR0ZgFQSkVs=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
npmDepsHash = "sha256-sgcMtWPsikAuMCZ1h5IV4Ly+lO3/OKkTzGm8iFx3HiM=";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
dontNpmBuild = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Test your prompts, models, RAGs. Evaluate and compare LLM outputs, catch regressions, and improve prompt quality.";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "promptfoo";
|
2024-01-02 11:29:13 +00:00
|
|
|
homepage = "https://www.promptfoo.dev/";
|
|
|
|
changelog = "https://github.com/promptfoo/promptfoo/releases/tag/${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.nathanielbrough ];
|
|
|
|
};
|
|
|
|
}
|