Files
AI-Video/pixelle_video/prompts/__init__.py
empty 3d3aba3670
Some checks failed
Deploy Documentation / deploy (push) Has been cancelled
feat: Add smart paragraph merging mode with AI grouping
- Add "smart" split mode that uses LLM to intelligently merge related paragraphs
- Implement two-step approach: analyze text structure, then group by semantic relevance
- Add paragraph_merging.py with analysis and grouping prompts
- Update UI to support smart mode selection with auto-detect hint
- Add i18n translations for smart mode (en_US, zh_CN)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 00:19:46 +08:00

59 lines
1.8 KiB
Python

# Copyright (C) 2025 AIDC-AI
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
Prompts package
Centralized prompt management for all LLM interactions.
"""
# Narration prompts
from pixelle_video.prompts.topic_narration import build_topic_narration_prompt
from pixelle_video.prompts.content_narration import build_content_narration_prompt
from pixelle_video.prompts.title_generation import build_title_generation_prompt
# Image prompts
from pixelle_video.prompts.image_generation import (
build_image_prompt_prompt,
IMAGE_STYLE_PRESETS,
DEFAULT_IMAGE_STYLE
)
from pixelle_video.prompts.style_conversion import build_style_conversion_prompt
# Paragraph merging (two-step: analysis + grouping)
from pixelle_video.prompts.paragraph_merging import (
build_paragraph_analysis_prompt,
build_paragraph_grouping_prompt,
build_paragraph_merging_prompt, # Legacy support
)
__all__ = [
# Narration builders
"build_topic_narration_prompt",
"build_content_narration_prompt",
"build_title_generation_prompt",
# Image builders
"build_image_prompt_prompt",
"build_style_conversion_prompt",
# Paragraph merging (two-step)
"build_paragraph_analysis_prompt",
"build_paragraph_grouping_prompt",
"build_paragraph_merging_prompt", # Legacy
# Image style presets
"IMAGE_STYLE_PRESETS",
"DEFAULT_IMAGE_STYLE",
]