{
 "schema_version": 1,
 "generated": "2026-10-31",
 "id": "dodoguardai-dodoguard--eval-llm-prompt-before-release",
 "repo": "dodoguardai/dodoguard",
 "repo_url": "https://github.com/dodoguardai/dodoguard",
 "repo_slug": "dodoguardai-dodoguard",
 "title": "Run a factuality eval on a prompt before release",
 "page_title": "How to run a factuality eval on a prompt before release with Dodoguard",
 "summary": "Score an LLM prompt against test cases from the command line in about one minute of run time.",
 "who": "A developer who changed a prompt or switched models and needs to confirm answer quality did not drop.",
 "problem": "Changing a prompt or model can quietly lower answer quality, and spot-checking chat does not catch it.",
 "outcome": "A pass or fail result for each test case, so a prompt or model change can be checked the same way every time.",
 "steps": [
  "Run `git clone https://github.com/dodoguardai/dodoguard.git`",
  "Run `cd dodoguard && npm ci && npm run build`",
  "Run `cp -R examples/openai-eval-factuality ./my-eval && cd my-eval`",
  "Set your key with `export OPENAI_API_KEY=\" \"`, replacing the space with your real key",
  "Run `../node_modules/.bin/dodoguard eval`"
 ],
 "agent_prompt": "In the dodoguard repo, copy examples/openai-eval-factuality to a new folder, set OPENAI_API_KEY, and run ../node_modules/.bin/dodoguard eval from that folder. Report the pass and fail count for each test case. Verify that the run finished and wrote a result for every case before you report success.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The quick start uses OpenAI, and the README lists other providers, so check the example config before you switch providers.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "Node.js 22.12 or newer for the CLI",
  "An OpenAI API key for the OpenAI example, or a local Ollama setup for the local red-team example",
  "Docker with Docker Compose for the web console",
  "Access to the Dify, Coze, FastGPT, or n8n app you want to check, if you run platform checks"
 ],
 "risk": "dual-use",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/dodoguardai-dodoguard/eval-llm-prompt-before-release/",
 "md": "https://dedupedai.com/use-cases/dodoguardai-dodoguard/eval-llm-prompt-before-release/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/dodoguardai-dodoguard--eval-llm-prompt-before-release.json",
 "api_version": "v1"
}
