From 9ef2ddd15c60f051d08bf69b3d6ef57dafb8c748 Mon Sep 17 00:00:00 2001 From: "DESKTOP-RTLN3BA\\$punk" Date: Mon, 18 Aug 2025 20:56:53 -0700 Subject: [PATCH] refactor: Remove deprecated document_title parameter from generate_document_summary function --- surfsense_backend/app/utils/document_converters.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/surfsense_backend/app/utils/document_converters.py b/surfsense_backend/app/utils/document_converters.py index dc0f636..8cc05af 100644 --- a/surfsense_backend/app/utils/document_converters.py +++ b/surfsense_backend/app/utils/document_converters.py @@ -9,7 +9,6 @@ async def generate_document_summary( content: str, user_llm, document_metadata: dict | None = None, - document_title: str = "", ) -> tuple[str, list[float]]: """ Generate summary and embedding for document content with metadata. @@ -18,7 +17,6 @@ async def generate_document_summary( content: Document content user_llm: User's LLM instance document_metadata: Optional metadata dictionary to include in summary - document_title: Optional document title for context (deprecated, use metadata) Returns: Tuple of (enhanced_summary_content, summary_embedding)