(summmary) add Langfuse to summary service dependencies

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.
This commit is contained in:
lebaudantoine
2025-12-11 15:55:23 +01:00
committed by aleb_the_flash
parent 10aac93c36
commit 43f3e4691b
2 changed files with 8 additions and 0 deletions

View File

@@ -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]

View File

@@ -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:"