mirror of
https://github.com/MODSetter/SurfSense.git
synced 2025-09-04 11:39:19 +00:00
refactor: Remove deprecated document_title parameter from generate_document_summary function
Some checks are pending
pre-commit / pre-commit (push) Waiting to run
Some checks are pending
pre-commit / pre-commit (push) Waiting to run
This commit is contained in:
parent
1c4c61eb04
commit
9ef2ddd15c
1 changed files with 0 additions and 2 deletions
|
@ -9,7 +9,6 @@ async def generate_document_summary(
|
||||||
content: str,
|
content: str,
|
||||||
user_llm,
|
user_llm,
|
||||||
document_metadata: dict | None = None,
|
document_metadata: dict | None = None,
|
||||||
document_title: str = "",
|
|
||||||
) -> tuple[str, list[float]]:
|
) -> tuple[str, list[float]]:
|
||||||
"""
|
"""
|
||||||
Generate summary and embedding for document content with metadata.
|
Generate summary and embedding for document content with metadata.
|
||||||
|
@ -18,7 +17,6 @@ async def generate_document_summary(
|
||||||
content: Document content
|
content: Document content
|
||||||
user_llm: User's LLM instance
|
user_llm: User's LLM instance
|
||||||
document_metadata: Optional metadata dictionary to include in summary
|
document_metadata: Optional metadata dictionary to include in summary
|
||||||
document_title: Optional document title for context (deprecated, use metadata)
|
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
Tuple of (enhanced_summary_content, summary_embedding)
|
Tuple of (enhanced_summary_content, summary_embedding)
|
||||||
|
|
Loading…
Add table
Reference in a new issue