Dev_guideComponents

CoreAI

Langfuse

Langfuse documentation

Langfuse

Description

Langfuse is a powerful, open-source platform that empowers developers and organizations to monitor, evaluate, and optimize their large language model applications. It facilitates collaborative debugging, prompt management, and comprehensive metrics tracking, all while being highly customizable and scalable. With support for self-hosting and enterprise-grade compliance, Langfuse is built to enhance the performance and reliability of AI-driven workflows in production environments.

Uses and Functionnalities

Key uses and functionalities of Langfuse:

  • LLM Application Observability: Tracks and logs every LLM and non-LLM call, including retrieval, embedding, and API calls, allowing detailed trace inspection and debugging of complex multi-turn conversations or workflows.

  • Prompt Management: Centralizes and version-controls prompts, enabling teams to collaboratively iterate on prompts and directly test different prompt versions and models.

  • Evaluation (Evals): Supports automated and manual quality measurements of LLM output, including user feedback collection, custom evaluation pipelines, and comparison against ground truth datasets.

  • Usage and Cost Tracking: Monitors token usage, request latency, and associated costs per user or application type, with APIs for downstream analytics, billing, and rate-limiting.

  • Error Logging and Monitoring: Pinpoints errors and bottlenecks in LLM workflows and labels outputs such as refusals or hallucinations for improved debugging.

  • Customizable and Extensible: Offers an API-first architecture with SDKs for Python and JavaScript, integrations with popular frameworks like LangChain and LlamaIndex, and OpenTelemetry compatibility.

  • Data Export and Compliance: Supports data exports to blob storage and complies with standards such as ISO27001, SOC2, GDPR, and HIPAA, making it suitable for enterprise deployments.

CICD integration method

To enable Langfuse, set the following variables in your main configuration file.

langfuse = {
    enabled      = true
    version      = "3"
    namespace    = "langfuse"
    component    = "dp-apps"
    release_name = "langfuse"
    ingress      = true
    url_prefix   = "langfuse"
}

API / Swagger

API documentation

Releases

DateNum. VersionNum. ChartDescription
2025-06-0430.12.1Langfuse implementation

Official documentation

Langfuse documentation

On this page