langfuse-core-workflow-b
Installation
SKILL.md
Langfuse Core Workflow B: Evaluation, Scoring & Datasets
Overview
Implement LLM output evaluation using Langfuse scores (numeric, categorical, boolean), the experiment runner SDK for dataset-driven benchmarks, prompt management with versioned prompts, and LLM-as-a-Judge evaluation patterns.
Prerequisites
- Langfuse SDK configured with API keys
- Traces already being collected (see
langfuse-core-workflow-a) - For v4+:
@langfuse/clientinstalled
Instructions
Step 1: Score Traces via SDK
Langfuse supports three score data types: Numeric, Categorical, and Boolean.
import { LangfuseClient } from "@langfuse/client";
const langfuse = new LangfuseClient();