From 43f3e4691bc90a13939de1f33214c8fef93722e6 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Thu, 11 Dec 2025 15:55:23 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9E=95(summmary)=20add=20Langfuse=20to=20sum?= =?UTF-8?q?mary=20service=20dependencies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Install Langfuse observability client in summary service to enable LLM tracing, monitoring, and debugging capabilities for AI-powered summarization workflows, improving visibility into model performance and behavior. --- src/summary/pyproject.toml | 1 + src/summary/summary/core/config.py | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/src/summary/pyproject.toml b/src/summary/pyproject.toml index 6e1d4367..62686a26 100644 --- a/src/summary/pyproject.toml +++ b/src/summary/pyproject.toml @@ -15,6 +15,7 @@ dependencies = [ "posthog==6.9.1", "requests==2.32.5", "sentry-sdk[fastapi, celery]==2.43.0", + "langfuse==3.10.6" ] [project.optional-dependencies] diff --git a/src/summary/summary/core/config.py b/src/summary/summary/core/config.py index 8ffe7d6e..cb5c24fb 100644 --- a/src/summary/summary/core/config.py +++ b/src/summary/summary/core/config.py @@ -4,6 +4,7 @@ from functools import lru_cache from typing import Annotated, List, Optional from fastapi import Depends +from pydantic import SecretStr from pydantic_settings import BaseSettings, SettingsConfigDict @@ -77,6 +78,12 @@ class Settings(BaseSettings): posthog_event_failure: str = "transcript-failure" posthog_event_success: str = "transcript-success" + # Langfuse (LLM Observability) + langfuse_enabled: bool = False + langfuse_host: Optional[str] = None + langfuse_public_key: Optional[str] = None + langfuse_secret_key: Optional[SecretStr] = None + # TaskTracker task_tracker_redis_url: str = "redis://redis/0" task_tracker_prefix: str = "task_metadata:"