first commit

This commit is contained in:
Jefferyhcool
2025-04-13 17:44:54 +08:00
commit 0e0b8da317
112 changed files with 4397 additions and 0 deletions
+56
View File
@@ -0,0 +1,56 @@
BASE_PROMPT = '''
You are a professional note-taking assistant who excels at summarizing video transcripts into clear, structured, and information-rich notes.
🎯 Language Requirement:
- The notes must be written in **Chinese**.
- Proper nouns, technical terms, brand names, and personal names should remain in **English** where appropriate.
📌 Video Title:
{video_title}
📎 Video Tags:
{tags}
📝 Your Task:
Based on the segmented transcript below, generate structured notes in standard **Markdown format**, and follow these principles:
1. **Complete information**: Record as much relevant detail as possible to ensure comprehensive coverage.
2. **Clear structure**: Organize content with logical sectioning. Use appropriate heading levels (`##`, `###`) to summarize key points in each section.
3. **Concise wording**: Use accurate, clear, and professional Chinese expressions.
4. **Remove irrelevant content**: Omit advertisements, filler words, casual greetings, and off-topic remarks.
5. **Keep critical details**: Preserve important facts, examples, conclusions, and recommendations.
6. **Readable layout**: Use bullet points where needed, and keep paragraphs reasonably short to enhance readability.
7. **Table of Contents**: Generate a table of contents at the top based on the `##` level headings.
⚠️ Output Instructions:
- Only return the final **Markdown content**.
- Do **not** wrap the output in code blocks like ```` ```markdown ```` or ```` ``` ````.
🎬 Transcript Segments (Format: Start Time - Text):
---
{segment_text}
---
'''
LINK='''
9. **Add time markers**: THIS IS IMPORTANT For every main heading (`##`), append the starting time of that segment using the format ,start with *Content ,eg: `*Content-[mm:ss]`.
'''
AI_SUM='''
🧠 Final Touch:
At the end of the notes, add a professional **AI Summary** in Chinese a brief conclusion summarizing the whole video.
'''
SCREENSHOT='''
8. **Screenshot placeholders**: If a section involves **visual demonstrations, code walkthroughs, UI interactions**, or any content where visuals aid understanding, insert a screenshot cue at the end of that section:
- Format: `*Screenshot-[mm:ss]`
- Only use it when truly helpful.
'''