Skip to content
プロジェクト

langfuse/langfuse-workshop

GitHubで見る

langfuse/langfuse-workshop has 63 GitHub stars and 44 forks. Star changes are not measured yet. Last checked 2026-11-13 22:31 UTC. Last push 2026-11-13.

この数値の測り方

計測したスター増加

24時間
履歴を収集中
7日間
履歴を収集中
15日間
履歴を収集中
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

概要

End-to-end Langfuse workshop using a TypeScript Agent to teach the AI engineering loop: tracing, prompt management, monitoring, datasets, experiments, and evaluation.

開発ツール
hero-b (1)

Langfuse Workshop - the AI engineering loop, end to end

This is a step-by-step Langfuse workshop built on a small TypeScript sample application: the Dad IT Support Agent. The workshop covers the full AI engineering loop with Langfuse: tracing, prompt management, monitoring, datasets, experiments, and evaluation.

The workshop is the hands-on version of many concepts explained in the Langfuse Academy. The complementary materials are called out respectively.

You can complete the workshop on your own from the learner lessons, or use the instructor notes to teach the same material to a group.

⚠️ Use Langfuse Cloud so you have the latest features this workshop describes. Self-hosted instances may be on an older version and will not match the lessons.

Confirm AI Features are on for your organization. New organizations usually have them on unless someone opted out. If Halo is missing, an owner or admin turns them back on under Organization Settings → General → AI Features.

For learners

Start with the learner lessons in docs/learner/. Each lesson tells you which checkpoint to check out, what to change in code or configure in Langfuse, and how to verify the result.

Use the learner path if you want to:

  • Log your first trace from a real LLM app and understand what you are looking at.
  • Move a prompt into Langfuse so changes are versioned and linked to traces.
  • Make sense of production traces: cost and latency, error analysis, and signals.
  • Build an eval dataset, run experiments, and evaluate changes with evidence.
  • Inspect a complete TypeScript reference implementation you can copy patterns from.

No instructor is required. The learner lessons are complete enough to run the workshop in self-guided mode.

For instructors

The instructor guide is for people who want to teach Langfuse to others. Use the notes in docs/instructor/ alongside the learner lessons when you are facilitating a live workshop, recording a walkthrough, or adapting the material for a team.

For preparation we included a guide and slides on how to prepare for the workshop docs/preparation_and_materials/.

The workshop does not depend on an instructor. The instructor notes add teaching points, demo rhythm, setup reminders, and common pitfalls; they are not required for someone completing the workshop alone.

Workshop scope

The sample app is a small web chat where Dad opens the chat to get iPhone help. The agent is named Specs and answers with step-by-step instructions. Under the hood, it is a normal OpenAI tool-calling loop with two local tools.

The AI Engineering Loop

The Dad IT Support Agent sample app: Specs greeting Dad, suggestion chips, and the iPhone side panel.

main contains the complete reference app and current workshop docs. Use it to inspect the finished implementation or compare your work against the end state. The exercises themselves start from checkpoint tags.

Modules

Step Learner lesson Instructor notes Checkpoint What you will learn
00 Setup Instructor notes checkpoint/00-setup Keys, install, run the app.
01 Base App Instructor notes checkpoint/01-base-app Tour the running app. Nothing to build.
02 Tracing Instructor notes checkpoint/02-tracing Log every agent step: generations, agent root, tool spans.
03 Prompt Management Instructor notes checkpoint/03-prompt-management Move the system prompt into Langfuse.
04 Monitoring Instructor notes checkpoint/04-monitoring Make sense of production traces: dashboards, error analysis, and signals.
05 Build eval datasets Instructor notes checkpoint/05-dataset Decide what to evaluate and build a dataset from error analysis.
06 Experiments Instructor notes checkpoint/06-experiments Run the agent against the dataset and score every item.
07 Evaluation Instructor notes checkpoint/07-evaluation Change one thing, rerun the dataset, compare runs.
08 Wrap-up Instructor notes checkpoint/08-wrap-up Apply the loop to your own app.

How to work through it

main is the complete reference implementation. For hands-on work, check out the checkpoint named in the lesson you are starting, make the missing changes, and verify the result before moving on.

checkpoint/00-setup and checkpoint/01-base-app intentionally contain the same untraced base app. Setup uses that state to validate keys, dependencies, and ports; Base App uses it for orientation. Tracing starts in 02-tracing.

The workshop server and npm helper scripts treat the repository .env as the Node-side source of truth. Local shell exports from other projects do not override .env, so change workshop keys, Langfuse host, prompt labels, and dataset names in that file.

The workshop is small enough to finish in a sitting, and every module can also be used independently if you only care about one part of the loop.

Repository layout

  • docs/learner/ contains the self-guided workshop lessons.
  • docs/instructor/ contains facilitator notes for teaching the same lessons.
  • docs/images/ contains screenshots and diagrams, grouped by lesson.
  • src/ contains the sample app.
  • scripts/ contains dataset and prompt helper scripts used in later lessons.

Where to go next

  • Walk the modules in order starting from docs/learner/00-setup.md.
  • Jump to whichever chapter matches what you want to learn.
  • Install the Langfuse skill (/langfuse) to apply the patterns from this workshop to your own codebase.
  • For bigger-picture material on each chapter, use the Langfuse Academy.

License

MIT, see LICENSE.

関連プロジェクトを探す