2024-01-02 11:29:13 +00:00
|
|
|
{ buildNpmPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildNpmPackage rec {
|
|
|
|
pname = "promptfoo";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.55.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "promptfoo";
|
|
|
|
repo = "promptfoo";
|
|
|
|
rev = "${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-XQnsOr+L2MCKPzZeIKzx4XjWF6B18gBVDU0j31CgjUc=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
npmDepsHash = "sha256-f7tlRZHjdeIk17hQhzmIbhMwUkoca3J+F65cr0dvSmU=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|