{
 "schema_version": 1,
 "generated": "2026-10-31",
 "id": "langfuse-langfuse--version-and-test-prompts-outside-your-code",
 "repo": "langfuse/langfuse",
 "repo_url": "https://github.com/langfuse/langfuse",
 "repo_slug": "langfuse-langfuse",
 "title": "Version and test prompts outside your code",
 "page_title": "How to version and test prompts outside your code with Langfuse",
 "summary": "Move prompts into Langfuse Prompt Management and iterate on them in the LLM Playground.",
 "who": "A product team where prompt changes need a code deploy and nobody knows which version is live.",
 "problem": "Prompts hard-coded in the app are slow to change and impossible to compare.",
 "outcome": "Versioned prompts fetched at runtime, with a playground for trying changes against real traces.",
 "steps": [
  "Run Langfuse self-hosted or on Langfuse Cloud",
  "Create your prompts in Prompt Management and fetch them from the SDK; caching on server and client keeps latency low",
  "When a trace shows a bad result, open it in the LLM Playground and try a prompt or model change",
  "Publish the better version and compare results over time"
 ],
 "agent_prompt": "Using langfuse/langfuse, move the prompts in <file> into Prompt Management, update my code to fetch them through the SDK, and set up the playground so I can test a new version against <example trace>.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "The README links to the docs for SDK code; the exact fetch call depends on your language.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "Docker and Docker Compose for local self-hosting, or a Langfuse Cloud account",
  "The Python or JS/TS SDK, or a supported framework integration",
  "For production: a VM, Kubernetes with Helm, or Terraform on AWS, Azure or GCP"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/langfuse-langfuse/version-and-test-prompts-outside-your-code/",
 "md": "https://dedupedai.com/use-cases/langfuse-langfuse/version-and-test-prompts-outside-your-code/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/langfuse-langfuse--version-and-test-prompts-outside-your-code.json",
 "api_version": "v1"
}
