🎬

Video tutorial coming soon.

📊 Setup Langfuse — LLM Observability Platform

Deploy Langfuse on Ubuntu with Docker — an open-source LLM observability and evaluation platform. Trace every AI call, measure output quality, detect prompt regressions, and track costs across all your LLM applications from one self-hosted dashboard.

⚠️ This script is provided for demo and testing purposes only. Not intended for production use.

📦 Resources & Setup Scripts

Grab the automated bash script from GitHub to follow along with the video.

Automated install — Langfuse with PostgreSQL backend in one command.
View on GitHub

Quick Install:

wget https://raw.githubusercontent.com/mhmdali94/Docker/main/ai/langfuse/langfuse-ubuntu.sh
chmod +x langfuse-ubuntu.sh
sudo bash langfuse-ubuntu.sh

Tutorial Steps

1 Download & Run the Script

The script installs Docker and deploys Langfuse with a PostgreSQL database for storing traces, evaluations, and prompt versions.

wget https://raw.githubusercontent.com/mhmdali94/Docker/main/ai/langfuse/langfuse-ubuntu.sh
chmod +x langfuse-ubuntu.sh
sudo bash langfuse-ubuntu.sh

2 Create Your Account & Project

Open your browser and navigate to Langfuse. Register an account, create a project, and generate your API keys:

http://<your-server-ip>:3000

3 Instrument Your Application

Install the Langfuse SDK in your application and wrap your LLM calls. For Python with OpenAI, it takes two lines:

pip install langfuse
# In your code:
from langfuse.openai import openai   # drop-in replacement
# All openai.chat.completions.create() calls are now traced automatically

4 Explore Traces & Evaluate

Open the Langfuse dashboard to see your traces, review individual LLM calls, add human or LLM-based evaluation scores, and set up automated evaluators for continuous quality monitoring.

Ports Used

PortPurpose
3000Langfuse Web UI & API

Overview

Why Use It

When You Need It

    Who Should Use It

      Real Use Cases

        Main Features

          How to Use After Installation

            Security Best Practices

              Ports and Firewall Notes

              Backup and Maintenance

                Common Mistakes

                  Troubleshooting

                    Alternatives

                    When Not to Use It

                    Need Help Setting Up Langfuse?

                      Contact Us

                      Frequently Asked Questions